How to insert the ClientID of a div into an OnClientClick event

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2010-05-26T14:17:56Z Indexed on 2010/05/26 14:21 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

In the XHTML for a page I have:-

<asp:Button ID="bookNowButton" runat="server" CssClass="bookNowButton"
            OnClientClick="showHideLoggedInDiv('<%=bookingFormDiv.ClientID%>')" />

This breaks. I need the correct syntax or method to insert the bookingFormDiv.ClientID into the control.

What needs to be done?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb