Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining Attributes.Add() in the Script side?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01297763
Message ID:
01297928
Vues:
29
This message has been marked as the solution to the initial question of the thread.
>>Yes with ASP.NET 2.0 you can use onClientClick.
>>
>><asp:Button id="Help" runat=server Text="Help" onClientClick="window.open('help.htm'); return false;)" />
>>
>
>I do use ASP.NET 2.0. But when I copies and pasted your code into my page, it does not work. What happens is the page seem to be posted back to the server but htm file help.htm is not opening.
>
>Thank you for your suggestion.

Sorry,

I copied an extra parenthesis on the end of your script. You should turn on the script error notification on your browser to alert you to script errors. Try this,
<asp:Button id="Help" runat=server Text="Help" onClientClick="window.open('help.htm'); return false;" />
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform