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

I want to know is it possible to redirect a web form from to C# windows form.
I got a web form with a button(in web page) to view OrderDetails and that button need to call a windows form with OrderDeatils of that Order that is in web form. so is it possible becouse ASP.Net uses sessions,querystring etc and uses respond.redirect whereas windows application uses something different.

I want to know is it possible and how?

1 solution


I have produced websites which launch windows forms. You can't launch a process already installed on a local machine but you can launch it using the .Net ClickOnce deployment mechanism.

ClickOnce application are just like any .Net windows application except they can be deployed onto a webserver and as the name suggests installed and launched with a single click.

You need to work through a few examples. The first shows you how to create a ClickOnce deployment for your application.

Deploying Windows Forms Applications with ClickOnce[^]

If you need the form to be aware of state information from the users current ASP.Net session it is possible to use the querystring to pass values into the application.

How to: Retrieve Query String Information in an Online ClickOnce Application[^]

The downside is, with this being a Microsoft product it only works seamlessly with IE. Although it can be enabled for Chrome and Firefox via the following:

ClickOnce for Google Chrome[^]
Microsoft .Net Framework Assistant for Firefox[^]
Share this answer
Manas Bhardwaj 7-Jun-12 5:56am    
nice +5!
Stephen Hewison 7-Jun-12 6:01am    
It quite surprising the number of places ClickOnce appears. Google Chrome installs via ClickOnce. I enjoy the irony in that fact! lol
Maciej Los 8-Jun-12 18:16pm    
Good answer, my 5!

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