authentication and session issues with resources

R

Ramadass

Hi,
I have a webforms application which uses Forms Authentication.
There are two webforms, mainform.aspx which retrieves data from a data.aspx
webpage(the data.aspx page is set via a property on a control on
mainform.aspx). The data.aspx serializes an xml file, which is used by the
mainform.aspx.

When i set the data.aspx as the start page and run the application, it
displays the xml file correctly, but when it is set as a property, it doesnt
seem to be authenticated and does not have the current session information.
How can i make it get authenticated.
Thanks
Ramadass
 
D

Daniel Fisher\(lennybacon\)

Hi Ramadass
I have a webforms application which uses Forms Authentication.
There are two webforms, mainform.aspx which retrieves data from a
data.aspx
Why don't you let mainform.aspx get the data itself? or by using a
"ResourceAccessLayer"?
webpage(the data.aspx page is set via a property on a control on
mainform.aspx). The data.aspx serializes an xml file, which is used by the
mainform.aspx.

When i set the data.aspx as the start page and run the application, it
displays the xml file correctly, but when it is set as a property, it
doesnt
seem to be authenticated and does not have the current session
information.
YOU must be authenticated or do you mean you let mainform.aspx read th
content of
data.aspx by using a WebRequest - if so you should try WebServices.
 
R

Ramadass

Sorry i wasnt very clear with my first post. I have a WebControl on the page
(mainform.aspx) which accesses the data.aspx to retrieve XML content from
it. The data.aspx serializes the xml data. The control creates a web request
to the data.aspx. It turned out that in the webrequest that i created, i was
not forwarding the credentials and therefore data.aspx was trying to
redirect to a login page.
I temporarily solved the problem by serializing the XML file generated by
the aspx to temp directory, but it would be nice if i could formulate my
webrequest to forward the right credentials and the session to the aspx
page.
Thanks
Ramadass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top