Matthew Small wrote:

>You're right about the handlers becoming detached, but it is easy to restore
>them (by clicking on the button in the design view) or by writing them
>yourself.
>  
>
Just remember that Design Mode can sometimes rewrite your HTML (like 
other design modes).  After reattaching the event, switch back to HTML 
View and check to see if the HTML has been changed.  If it was, hit 
Ctrl-Z once, which will undo changes to HTML (but not the design-vew or 
code-behind changes).

I like using this approach because it writes the event handler directory 
into the page init event (which IMHO is a little better than placing the 
Event Handler directly on the <ASP:whatever> web contol.  It also writes 
the event handler with the really obscure (sender object, 
WeirdAssObjectArgumentType e).

Eric


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Now there’s a better way to fax. eFax makes it possible to use your existing 
email account to send and receive faxes. Try eFax free.
http://www.houseoffusion.com/banners/view.cfm?bannerid=63

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:158844
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to