Hi all,
An example layout of my page...
UC: Log Out linkbutton
PAGE:
Table
Row: UserName _______
Row: Password _______
Row: Logon Button
The idea is to show the Log Out linkbutton when the page is logged in and
the table is made invisible. I am using User.Identity.I sAthenticated to
manage making things visible or not...
The UC control actually verifies the logon account and password against the
database.
First come to page.
IsAuthenticated is false.
UC: is not visible
Table is visible
Enter username and password
Order of processing is:
PAGE: Page_Load
UC: Page_Load
This causes me an issue as I can get the Log Out button to show (as the UC
sets IsAuthenticated to true) but as the PAGE: Page_Load is prior to the UC:
verification, so the User/Pass table is still visible. I can't call the
table from the usercontrol as the control is held on many pages and not
every page has the username/password boxes.
The other side of the coin is also true. I click log out, the log out
disappears (as IsAuthenticated is false) but the table is not visible
(assuming I have done a refresh of the page to get the table to disappear)
Aaaarrrrgggghhh h!!!!! I have spent ages trying to make this work. I am soooo
frustrated. :-(
How can I get round it. The log out needs to be at the top of the page, the
UserName/Password boxes where the action is, so that people can quickly do
what they need to do that requires authentication.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available