Monday, January 10, 2011

How To Disable A Button in ASP.Net so that the click event is passed to Code Behind

here's how to get around the disable/asp.net even problem.

add a javascript function called function disableControlls(){} (or whatever u want to call it) then call that from the body event "onbeforeunload" so your body tag would look something like this:

<body MS_POSITIONING="GridLayout" onbeforeunload="disableControlls();"> the original values for the controls still post back, as well as events before the unload event, so when you disable the controls at that point there is no adverse effect.

Nathan Maffeo
Friday, December 03, 2004

No comments:

Post a Comment