Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Taking control over a button
Message
De
12/05/2006 09:26:48
 
 
À
11/05/2006 22:43:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01120906
Message ID:
01121287
Vues:
9
>However, since last night, I finally figured out the proper way of posting these pages and have resolved the issue.

Could you tell the rest of us how you resolved the problem?

~~Bonnie




>>Instead of an asp:Button control you could use a regular input button, like this:
>>
>>
>><input id="Button1" type="button" value="button" />
>>
>
>If I do that, I loose all the ability to control that button from the code behind.
>
>>If, on the other hand, you want to have programatic control over this button server-side you can simply add the runat="server" attribute on the element and it will become available in your code-behind:
>
>The syntax you showed is an option to have it visible in the code behind. This is great.
>
>However, since last night, I finally figured out the proper way of posting these pages and have resolved the issue.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform