Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Presenting confirm dialogs from server side code
Message
De
12/12/2003 11:44:46
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00858238
Message ID:
00858626
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform