Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Validation
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00895521
Message ID:
00895657
Vues:
14
Hi David,

Yeah, hadn't thought of adding it in programmatically. I'll give that a try and see how it works.

Many thanks,
Bill

>Try
>
>btnSubmit.Attributes.Add("onclick", "btnOnClick();")
>
>or in C# I think its
>
>btnSubmit["onclick"] = "btnOnClick();";
>
>This is for asp.net controls. HTML controls work as you would expect.
>
>>Hi Hector,
>>
>>Know how to find out how to do this? :-) When I try to implement the button's client side "OnClick" event, E.g.
>>
<asp:button id="btnSubmit" OnClick="javascript:btnOnClick()" runat="server" Font-Size="X-Small" Font-Names="Arial" Text="Submit"></asp:button>
>>ASP.NET squeals like a stuck pig.
>>
>>Bill
>>
>>>I *think* you could have each button call a different (client side) JavaScript function. Inside each function you'll do whatever validations you need and then call document.myform.submit to actually post the form the web server.
>>>
>>>I say "I think" because I have never done this, I've only seen/heard examples that mention this. Hope this helps.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform