Don't you guys sleep or take a break? It's labor day weekend for pete's sake!
;-) Stay safe. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Dominick Baier Sent: Sunday, September 03, 2006 1:19 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Server.Transfer and UserControls To make login.aspx receive the data, you have to pass some data. I guess you could get to it via PrevioushHandler.Request.Form - but better pass it via the Context.Items collection or query strings to login.aspx.... Context.Items["username"] = "yyy"; Context.Items["password"] = "aaa"; cheers, dominick ----------------------------- Dominick Baier, DevelopMentor http://www.leastprivilege.com -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ben Joyce Sent: Samstag, 2. September 2006 22:43 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Server.Transfer and UserControls Hi all. I have a question regarding UserControls. Part of the site I am building is an area on each page where the user can log in, thus, I have made this area a UserControl with the textboxes and button in there so I can display and control it the same on each page. My idea was that when the form is submitted the data from the controls could be passed to the login.aspx script from the parent page using Server.Transfer, this way I can put all the logic for authenticating a user in login.aspx. The thing is, when the form is submitted and i do the Server.Transfer("login.aspx",true) the Page_Load() in login.aspx does not receive the data from the controls in the UserControl at all. I'm pretty confused as to whether this can be done, or even if I am doing things the right way. If anyone has any advice or suggestions on a better method of processing logins from each page I'm all ears. Cheers, Ben =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com