Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Presenting confirm dialogs from server side code
Message
From
12/12/2003 11:44:46
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00858238
Message ID:
00858626
Views:
15
Thanks for the reply Rick.

>The idea is basically to hook either the onclick of the button you're submitting from or the onsubmit event of the form.
>

Another developer that I am working with has also recommended using the onsubmit event to call a client side function, cool. I'm doing that.

>The easiest way to do this is to simply put the confirm code into the HTML the ASPX and attach it to the appropriate object. Alternately you can do this in code as well by using the Attributes collection of the control and adding the handler as an attribute.
>

Yea, I get it, I think. The client side function is in control and based on the users response and the results of a couple of calls to sprocs I'm also sprinking in, directs the appropriate action, either cancelling the onsubmit event or returning to it. Thanks to my partner and your confirmation, I think I'm on the right track here.

Now as far as that Attibutes collection and adding a handler, that's where I'm a little lost. I did see that idea in some things that I read, but I don't really get it. Will have to take a look at that in more detail later.

Thanks again Rick, I really appreciate it.
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform