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
Post a Comment