I have local .aspx page to generate HTML message. But when I try to request the page using this code
HTML = new WebClient().DownloadString("http://localhost/MySite/HTMLEmail.aspx")
it returns the HTML without the passed data through Session. If I tried to request the page directly from the browser, it displays html page with the passed data.
so why it doesn't fill the HTML message with the data when i programmatic request the page ?