I want to pass my dynamic value received in querystring to a javascript function from an imagebutton onclientclick event :
Request.QueryString["id"].ToString()
<asp:ImageButton ID="btn" runat="server"
OnClick="btn_Click"
ImageUrl="/images/events.gif"
OnClientClick="return confirm('Are you sure delete the id number XXXXXX ?');" />
I need that on XXXXX is the value passed in querystring.
I have tried without success of the examples found on google.
Can you help me ?
Thank you in advance for any help.
idis an empty string. Granted, you might already have validation on Page_Load.