We take pride in your success. We let our positivity drive us, day in and out. Talk to us at Mindfire to know us more.

Software Technology Tips

To open a new browser window we can use the Process Class and a Start Method.The Process class contains a static Start method. Because we can call Start without having an instance of a Process class. By using Process Class we can also open an URL path, a file path, or a FTP address programmatically from ASP.NET application.

These are the list of options we can use to open the new window using Process class.

//-- used to open a blank web browser window
string targetSite = "about:blank"; 
 
 //-- Open an url in a new web browser window
string targetSite = "http://www.yahoo.com"; 
 
//-- Open the ftp site in a new window
string targetSite = "ftp://ftp.mysite.com"; 
 
//-- Open the test.html  file in a new web browser window
 string targetSite = "D:\\test.html"; 
 
By using the following line of code we can open the required window programmatically from ASP.NET application .

System.Diagnostics.Process.Start(targetSite);


Related Tags:

ASP.NET

Author: Rasmita Mohanty

top

ASP.NET

Let us Connect!

privacy

copyright (c) Mindfire Solutions 2007-2012. Login