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?
You can set the attribute from code behind:
bookNowButton.OnClientClick = "showHideLoggedInDiv('" + bookingFormDiv.ClientID + "')"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With