Hey all,
I have 2 .aspx pages. I want to have a connection between these 2 pages through a button click event..From one of the ASP.Net books I came to know about this link buttons,whose main job is to connect 2 web pages..Well that worked fine..
Now my question is, I need to pass an integer value from first .aspx page to 2nd .aspx page..
I wrote this code in 1st aspx page..the integer variable year is the parameter that I want to pass..Now how do I receive this parameter in the 2nd page. Can I access that with the sender object on Page Load event of the second page? If anyone has the syntax for it, it would be greatly appreciated..
connect.aspx:
<asp:LinkButton ID="picUpload" runat="server" OnClick="picUpload_Click">Upload your pictures</asp:LinkButton>
connect.aspx.cs:
protected void picUpload_Click(object sender, EventArgs e)
{
int year = 1870;
Response.Redirect("upload.aspx",year);
}
Thanks
Ani