Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am absolutely new to ASP.Net. I have an ASP.Net project. In winforms (I use vb.net) we can display a form by

form2.show()

I have created second webform but donot know how to show it in a way something like vb.net.

Please help.

Thanks
Posted
Comments
Uday P.Singh 31-Aug-11 12:43pm    
Are you looking for going from one webform to another in web browser?
Furqan Sehgal 31-Aug-11 12:47pm    
Yes that is right..........

In Asp.Net you can use Response.Redirect to display other Page in Browser.

VB
Response.Redirect("SecondWebPage.aspx");
 
Share this answer
 
Comments
Furqan Sehgal 31-Aug-11 12:52pm    
Thanks!
RaisKazi 31-Aug-11 12:53pm    
Welcome.
Furqan Sehgal 31-Aug-11 12:54pm    
I want to try my application by deploying it over the internet, is there any website that offers this service as a free trial?
RaisKazi 31-Aug-11 13:03pm    
Their are many Providers available for Web Site Hosting. For Free Trial you can search "free website hosting" term on Google. Hope it helps you.
Uday P.Singh 31-Aug-11 12:59pm    
my 5 too!, I think we both answer this at same time.
Try this:

in webform1 write this on a button click:

C#
protected void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("webform2.aspx");
        
    }


or this:

C#
protected void Button3_Click(object sender, EventArgs e)
  {
      Server.Transfer("webform2.aspx");
  }


both will work.

hope it helps :)

for further queries comment here!
 
Share this answer
 
Comments
Furqan Sehgal 31-Aug-11 12:52pm    
Thanks
RaisKazi 31-Aug-11 12:53pm    
Perfect. 5!
Furqan Sehgal 31-Aug-11 12:54pm    
I want to try my application by deploying it over the internet, is there any website that offers this service as a free trial?
Uday P.Singh 31-Aug-11 13:03pm    
You can search the google to get many free webhosting sites, but i don't think there services are as good as compared to paid ones.
Furqan Sehgal 31-Aug-11 13:11pm    
yeah but I just want to try it first, i am in learning phase so donot want to spend money...........

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