Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:706434
More Search Options
RSS Available
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)
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
WindowsClient:
WPF Manipulation Basics
ASP.NET:
High CPU in .NET app using a static Generic.Dictionary
TechNet Edge:
Deploying Silverlight - Why and How
WindowsClient:
Windows Client Developer Roundup for 12/21/2009
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online