Click here to Skip to main content
15,891,428 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is this code is correct ????????
<asp:ImageButton ID="image_Geothermal" runat="server" ImageUrl="pictures/Desert.jpg" class="design" PostBackUrl='<%# "~/Energy.aspx?var="+Eval("Geo-Thermal Energy") %>' target="_blank" style=" top:0px; left:0px; z-index:1;" />


i am a beginner.. i want that whenever user click on this image ..next page will load with query string value passed with this image...plz help

thank you
Posted
Updated 24-Aug-13 13:38pm
v2

1 solution

This code is correct.

You can get query string on next page Energy.aspx.cs

For example

C#
protected void Page_Load(object sender, EventArgs e)
       {
           string var = Request.QueryString["var"].ToString();
           Response.Write(var);
       }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900