Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass ClientID in OnClientClick
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to pass ClientID in OnClientClick
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01301882
Message ID:
01301882
Views:
198
Hi everybody,

Here is what I have in ASPX file:
<asp:Button ID="btnCancelProfile" runat="server" Text="Cancel" CausesValidation="False"
                                                    EnableViewState="False" OnClientClick="HideElement('<%# tblProInfo.ClientID %>');"
                                                    UseSubmitBehavior="False" />
Something is wrong here, because in the script I get What as
<%...
instead of the actual id.

What should I change to make it work?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform