Attention: We are retiring the ASP.NET Community Blogs. Learn more >

ASP.NET Whidbey logon controls

If you are looking at the ASP.NET Whidbey logon controls, you will most likely want to change two things.  The first item is the logon page that your site uses.  To set that, go into the web.config and set the value for the loginUrl to something like what you see below.  Note that I removed the timeout value.  Thanks to Greg Beamer for reminding me of the basics.  ;-)

<authentication mode="Forms">

<forms loginUrl="Default.aspx" protection="All" />

</authentication>

The second thing to do is to change the value of the DestinationPageUrl property of the logon control to the page that you want to direct the user to once a logon is completed.  The default is to go to the Default.aspx page.

Wally

No Comments