How can i display a new page
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
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 ...........
Hope this is enough
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...
Thanks in advance!!!!
There are two ways:
(1) on page load event put the code like this
(2) Or write code like this in Button's Click event.
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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)