N
Nathan Sokalski
There are many cases in which I want to use the same event for manually
added JavaScript as one that is used for generated JavaScript. For example,
when I set the AutoPostBack property of a TextBox to True, the JavaScript
onchange event is used. However, I may want to execute a piece of JavaScript
before the postback, such as setting the value to 0 if the user changes the
value to "" (Otherwise, I would recieve an error when trying to use a
function such as CInt()). Situations like this also occur quite often when
using Validators with Display="Dynamic". Is there any way to control what
order the JavaScript is added to the event? Does anybody have any
suggestions on a workaround (that doesn't require checking the value in
every place in my code that I use the value)? Thanks.
added JavaScript as one that is used for generated JavaScript. For example,
when I set the AutoPostBack property of a TextBox to True, the JavaScript
onchange event is used. However, I may want to execute a piece of JavaScript
before the postback, such as setting the value to 0 if the user changes the
value to "" (Otherwise, I would recieve an error when trying to use a
function such as CInt()). Situations like this also occur quite often when
using Validators with Display="Dynamic". Is there any way to control what
order the JavaScript is added to the event? Does anybody have any
suggestions on a workaround (that doesn't require checking the value in
every place in my code that I use the value)? Thanks.