You're close, but barking up the wrong tree.
If you drag a asp:login control onto your form ... you're saying "I want to
use a Membership Provider".
Asp.Net 2.0 comes with a default MProvider. Which you're aware of, because
you're trying to override on of the events.
You actually need to switch gears....
http://www.dotnetbips.com/articles/d...le.aspx?id=494
And implement a custom MemberShip Provider.... which hooks into your MYSQL
database.
Basically, you'll inherit from the abstract class..... and then you have to
put in the web.config that you're using the "non standard" Membership
Provider.
...
<pe*************@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi All,
I am new to ASP .NET, and have managed to add an asp:login control onto
my web page which hooks into a MSSQL database.
I can enter user names and passwords into the login control (this will
be the first page of my web site to authenticate the user), but then I
am a bit stuck.
All I would like to do is intercept the 'OnLoggedIn' event (which
occurs when the user clicks OK with a correct user name and password),
and in my C# code change to my next web page which is going to be the
start of the main site. Cannot work out the code to change to the next
web page.
Thanks, Peter.