D
D
dnv7772012-08-31 01:49:30
ASP.NET
dnv777, 2012-08-31 01:49:30

How to pass asp.net login form?

the question arose, you need to log in from C # (or VB.NET) to an ASP.NET site and take data
from there. There is already a lot of similar experience with sites, but here the site uses the standard asp:Login control for login through which I can’t get through

just passing via WebRequest with the POST type of hidden fields __VIEWSTATE and others with saving cookies does not help.

Checked via Chrome \ Network Listener what is transmitted when logging in to the server. It seems like I'm doing everything the same way, but it still doesn't work.

who faced such a problem? how did you decide?

Google did not give useful advice to requests like "pass asp.net login form"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex-S, 2014-06-18
@Alex-S

Standard is just the easiest.
In VIEWSTATE, not the fields are hidden, but their values ​​on the server side, then you need the id of these fields, which can be easily viewed by html + url for a post request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question