Re: authentication and session issues with resources

From: Ramadass (anonymous_at_discussions.micorsoft.com)
Date: 12/10/04


Date: Fri, 10 Dec 2004 15:24:25 -0600

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
"Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
message news:u3cN2ct3EHA.1264@TK2MSFTNGP12.phx.gbl...
> 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.
>
> --
> Daniel Fisher(lennybacon)
> MCP ASP.NET C#
> Blog: http://www.lennybacon.com/
>
>



Relevant Pages

  • XML Code Group
    ... I read somewhere in this group how to retrieve xml value from a freshly ... defined custom code group. ... And I receive a nice "There was an error creating the code group" without ...
    (microsoft.public.dotnet.security)
  • XML Code Group
    ... I read somewhere in this group how to retrieve xml value from a freshly ... defined custom code group. ... And I receive a nice "There was an error creating the code group" without ...
    (microsoft.public.dotnet.security)
  • Inserting into SQL via XML using OLEDB Consumer Templates ?
    ... Has anyone got a sample or some links on how to insert data into SQL Server via XML? ... Only saw samples to retrieve XML up to now. ... Is it correct to assume that inserting 3000 rows via XML would be faster than doing 3000 stored proc calls? ...
    (microsoft.public.data.oledb)
  • Re: Persist login does not work
    ... I was able to make a solution that stores the following values as xml in the ... > and IPrincipal authentication and authorization strategy that is used ... > I use the UserID to create my custom IIdentity and IPrincipal objects and ... > in that case its a database call everytime). ...
    (microsoft.public.dotnet.security)
  • sending data to another server and receiving data as response
    ... http-request.As response i will get another xml file from that server. ... 1.collected the data by using webrequest and webresponse class's ... // GET XML - read XML, get it into string ...
    (microsoft.public.dotnet.framework.aspnet.webservices)