I am doing my in-house project.i want to know that, how can i display a new page while clicking a button say (WebForm1.aspx.cs), a page named (WebForm1.aspx.cs) should open? How can i do that? Please Help me.....
Thanks in advance.....
simply add the code in button click function
Response.Redirect("WebForm2.aspx");
before doing this make sure that you have Webform2.aspx in your application
if don't have go to solution explorer
there right click to your project
select new item ...........
Thanks for your response. but if i use the "Response.Redirect("WebForm2.aspx")" it loads in the same page itself not in a seperate page. i want that page should be as a seperate one. Plz help me...
are u using "Response>redirect("WebForm2.aspx");"
on the webform2.aspx itself
then it will offcorse redirect tothe same page
use this on some other page than webform2.aspx
this will open webform2.aspx on response of your request in same window if you want to opwn new window then follow code given by sajjad27s
Bookmarks