Dear ASP.NET Programmers,<BR><BR>Please consider the intranet site with the following forms authentication page http://localhost/database/login.aspx. The usernames and passwords are stored in the SQL Server database. After authenticating, the users are be able to save the generated documents (HTML output of the generated document) when they click on a button in http://localhost/database/medicalDocs/1.aspx. I use the following code:<BR><BR> Dim wReq As WebRequest<BR> Dim wResp As WebResponse<BR> Dim srData As StreamReader<BR> Dim fsDest As FileStream<BR> Dim wrStream As StreamWriter<BR> Dim buffer(1024) As Char<BR> Dim intBytes As Integer<BR> Dim strData As String<BR> <BR> fsDest = New FileStream("d:Downloadsdoc.htm", FileMode.OpenOrCreate, FileAccess.Write)<BR> wrStream = New StreamWriter(fsDest) <BR> wReq = WebRequest.Create("http://localhost/database/medicalDocs/1.aspx")<BR> wResp = wReq.GetResponse<BR> srData = New StreamReader(wResp.GetResponseStream, System.Text.Encoding.ASCII)<BR> intBytes = srData.Read(buffer, 0, 1024)<BR> Do While (intBytes &#062; 0)<BR> wrStream.Write(buffer, 0, intBytes)<BR> intBytes = srData.Read(buffer, 0, 1024)<BR> Loop<BR> wrStream.Close()<BR> srData.Close()<BR> fsDest.Close()<BR><BR>but the saved document is the login page (http://localhost/database/login.aspx) instead of the http://localhost/database/medicalDocs/1.aspx. How can I supply the login information with the WebRequest object or how can I work around it? Thanks in advance,