Hi,
I have one folder Admin, In Admin folder i have one page Section.aspx page.
In the main root directory, i have one page customer.aspx page.
In customer.aspx page, i have one button, when i clcked that i want to redirected to Section.aspx page that is in Admin Folder.
Protected void Button1_Click(object sender,EventArgs e)
{
Response.Redirect("Admin/Section.aspx?SelectedValue=Admin");
}
When i click the Button it is redirecting to Home.aspx page...and in the Browse i am getting the url like this:
localhost/Home.aspx?ReturnUrl=%2fAdmin%2fSection.aspx%3fSelectedValue%3dAdmin&SelectedValue=Admin
But in the Same Button when i redirected to some other page it redirecting,but in the above page i.e Section.aspx it is not redirecting.
In section.aspx page:
we are displaying some values in the Grid.
Thanks,
Kalyan BasaPosted Mar 16, 2012, 1:38 AM
Use like this it should help you.
Response.Redirect("../Admin/Section.aspx?SelectedValue=Admin");
or
Response.Redirect("~/Admin/Section.aspx?SelectedValue=Admin");
Hope this helps.
Thanks,
Kalyan