Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am downloading a file from http://www.atssitecentre.co.uk[^] frequently for which I have to sign in and go through 3,4 other clicks after login. The file which I am downloading is an Excel Worksheet and creating from Database just after clicking the "Download" button.

So how can I send credential to the website using ASP.Net and reach to button which cause downloading the required file and be clicked automatically.

Is it possible with httpWebRequest the .Net Class? I am new in .Net and need some example too if possible.

Thanks
Posted
Updated 6-May-11 18:48pm
v2
Comments
Steven.Pinto2000 7-May-11 0:36am    
first which type of authentication mode you r using if it is windows then you just need to do some settings in the browser and then redirect to the page where your button is
and if you are using forms authentication mode then i would recommend you to store the log in details in cookies in encrypted format and then on form load of the log in page check if there are cookies and then log in to the page where your button is
and the thing of the button being clicked automatically you can use the registerstartupscript if the user is login without the normal process and use javascript to call the button

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