You might be able to work something out with the info found here:

http://msdn2.microsoft.com/en-us/library/6c3yckfw.aspx

and here

http://msdn2.microsoft.com/en-us/library/ms178139.aspx

If you manage to get things working like you planned, could you please make
another post to include some details of what you did?

Ron

----- Original Message -----
From: "Ben Joyce" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Saturday, September 02, 2006 3:42 PM
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 DevelopMentorĀ®  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

Reply via email to