.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to open New WebPage from c#.net Code

Posted By: Vikramraj     Posted Date: February 18, 2011    Points:2   Category :C#
I have One .aspx Webage from which i have to call another .aspx Webpage using C# Code how its posible.

Author: Aamrapali Tamgadge             
Posted Date: February 18, 2011     Points: 5   

Hi.If u r using aspx pages den Use

Response.Redirect("URL of Your Page");

to call the next aspx page in code behind.

Software Programmer At OTIS ISRC
Author: Lakhan Pal Garg             
Posted Date: February 20, 2011     Points: 5   

Hi Vikram
you can use :
Page.ClientScript.RegisterStartUpScript to register your javascript (Window.Open)
to open a page from code behind file.
Thanks & Regards,
Lakhan Pal Garg

Author: prakash1598             
Posted Date: February 22, 2011     Points: 5   

if you want to navigate from one page to another page then you can use
Response.Redirect("name or url of your page.aspx");
you can use this code in c sharp

Author: Raga             
Posted Date: March 02, 2011     Points: 20   

You have two options Server.Transfer and Response.Redirect.

In Response.Redirect the client will have knowledge about the page that its navigating to.
And in Server.Transfer it happens without the knowledge of the client.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend