Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recognizing OnClientClick() event adjustment at process time
Message
From
20/04/2008 12:29:02
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Recognizing OnClientClick() event adjustment at process time
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01311957
Message ID:
01311957
Views:
76
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
Next
Reply
Map
View

Click here to load this message in the networking platform