Search

You searched for the word(s): userid:706434

Matching Posts

  • Re: forms authentication - email current page as html

    i added the credentials directly under my declaration of objRequest as such: Private Function ScreenScrapeHtml(ByVal url As String) As String Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url) objRequest.Credentials = CredentialCache.DefaultCredentials 'tbEmployee.Text = objRequest.Credentials Dim sr As New StreamReader(objRequest.GetResponse().GetResponseStream()) Dim result As String = sr.ReadToEnd() 'sr.Close() Return result End Function 'ScreenScrapeHtml this still returns the
    Posted to Security (Forum) by briancollins on 2/11/2007
  • Re: forms authentication - email current page as html

    Here's the function to obtain the page and then send it as an html email: Private Function ScreenScrapeHtml(ByVal url As String) As String Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url) Dim sr As New StreamReader(objRequest.GetResponse().GetResponseStream()) Dim result As String = sr.ReadToEnd() sr.Close() Return result End Function 'ScreenScrapeHtml -----------------------------------------------------------------------------------------------------------------------------
    Posted to Security (Forum) by briancollins on 2/9/2007
  • forms authentication - email current page as html

    I am trying to send the contents of the page my users are currently logged into (i.e. "timesheet.aspx") as an email with the page shown in the body as html. My users access the page using Forms Authentication via an LDAP/Active Directory connection string and login control. My web.config seems to be configured correctly. When the users submit the page via a button click event, the email that is sent contains the html from the login screen (login.aspx). I'm assuming that somehow the user authentication
    Posted to Security (Forum) by briancollins on 2/9/2007
  • email current page sends login screen

    Can someone please advise? I'm am trying to email the current .aspx page as html from a button click event; however, the email that is actually sent to the recipient displays the login screen of my site. My users login with their AD accounts through an LDAP connection string. I presume that somehow I am not passing through the proper authentication when the user clicks the email submit button, and I can't figure out how to do it. Here's my code: Public Function ScreenScrapeHtml( ByVal url As String
    Posted to Security (Forum) by briancollins on 2/6/2007
Page 1 of 1 (4 items)