I am trying to build a desktop interface for my my website and want to pass variable to the asp sever.but couldn't find a proper way to pass these values more concisely i want to pass variables from separate window form application to a separate asp server.I don't want to pass values to web browser but to directly them to a web server.
Asked
Active
Viewed 305 times
2
-
What values ? What have you tried? – Mainak May 09 '16 at 04:50
-
I am trying to get values in window form, from user and want to perform extract and insert operation using these values, in the database of an asp website. – Sana May 09 '16 at 05:11
-
Make changes to accept `QueryString` in your asp.net application and send request to that `URL` with `QueryString` from `winforms` application – Muhammed Shevil KP May 09 '16 at 06:44
-
would you please provide, any sample code or any reference link for it. – Sana May 09 '16 at 16:25
1 Answers
3
In your website, make an API controller that will take your desktop data as a POST request.
From your client, you can then pass data easily, i.e. by serializing to JSON before sending.

Pedro G. Dias
- 3,162
- 1
- 18
- 30
-
I am a beginner and don't have enough knowledge. i am working on my collage project please would you provide me some detail and references about these things like Jason and API controller.. – Sana May 12 '16 at 12:52