I have a desktop application and a web application. I want to login web app from desktop app, how to do it? Now, I used NetworkCredential and WebReponse but don't work.
Asked
Active
Viewed 624 times
0
-
1you are not giving enough info about your web app to answer your question, i.e. what kind of authentication are you using? – BrokenGlass Aug 31 '11 at 03:32
-
Agreed with BrokenGlass, you really need more information. – Nathan Moos Aug 31 '11 at 03:34
-
If the website isn't yours, google the WebClient class. eg: http://stackoverflow.com/questions/1459501/c-webclient-log-onto-website otherwise you will need to add more info such as the winform code that doesn't work and the web app code that listens for the winform login call. – Jeremy Thompson Aug 31 '11 at 04:06
-
What do you want to happen once logged in? – Adam Tuliper Aug 31 '11 at 05:08
-
Are you running the app & web app inside a corporate Windows Domain? If so you can use Windows Authentication to access both the app & web app without the user having to re-type their username + password. – saille Aug 31 '11 at 05:21