javascript - Single Value Binding -


the intent append javascript code within onclientclick event pass in value of searchidtextbox id parameter. if hard code "22" ???? function runs properly. think need make ???? single value bind expression i'm having trouble setting code.

<asp:imagebutton id="premiumuserimagebutton" width="40px" onclientclick="return clientclickevent('advancedsearch.aspx?id= ???? )" causesvalidation="false" imageurl="~/images/premium.gif" runat="server" /> 

tried no luck!

<asp:imagebutton id="premiumuserimagebutton"  width="40px" onclientclick="return clientclickevent('advancedsearch.aspx?id='<%# getid() %>'" causesvalidation="false" imageurl="~/images/premium.gif" runat="server" /> 

in code have put apostrophe. there no bracket close javascript function.

please replace code below code.

<asp:imagebutton id="premiumuserimagebutton"  width="40px" onclientclick="return clientclickevent('advancedsearch.aspx?id=<%# getid() %>');" causesvalidation="false" imageurl="~/images/premium.gif" runat="server" /> 

you can check tag in firebug firefox best add on.

hope you.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -