Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recognizing OnClientClick() event adjustment at process time
Message
De
20/04/2008 12:29:02
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Recognizing OnClientClick() event adjustment at process time
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01311957
Message ID:
01311957
Vues:
77
In my form, I have a button control. It has an OnClientClick() event. I just put something in there just to see if that could be seen by my code. I am using loControlButton.OnClickClient.Length to see if I have something in there. I can see that it recognizes it by showing me the exact OnClickClient() value I put in the form by using loControlButton.OnClickClient. But, before executing that line, I am adjusting the OnClick event by doing this:
loControlButton.Attributes.Add("onClick","window.location='/'; return false;')
However, this doesn't seem to be recognized. It seems whatever I do in the code is effective when the page loads but is not recognized when the code is being executed. What can I do to adjust that so my code will recognize the onClick attribute I just added?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform