Click here to Skip to main content
15,030,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have desktop application in vb.net and i have web application in asp.net. i want to redirect from desktop application to web application please help me?
Posted

1 solution

1.Is not possible to do this, because the web application is running on the web server and only the web application's clients are running in web browser, and desktop application is running on your computer. Also there is no redirect in the context of desktop application.

2.What you can do, is to open a web browser for your given URL directly from your desktop application, like in the example below:
C#
string url = "http://www.codeproject.com";
System.Diagnostics.Process.Start(url);
   
v2
Comments
Member 9027346 16-Dec-14 5:48am
   
System.Diagnostics.Process.Start(url)not working.error:Unknown error (0x80041002)
Raul Iloc 16-Dec-14 6:31am
   
1.It should work, maybe you set a wrong URL.
Here is a link from Microsoft support that confirm my solution:
http://support.microsoft.com/kb/305703

2.Could you publish the sequence of code used for doing this, maybe is an error there. You could also catch the exception like is done in the Microsoft support link.

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