Hi,
I created an object with some events but when I try to run it, it gets a runtime null reference exception error on the event in the called object.
Has this got something to do with statelessness in ASP? (Postbacks) If so, how is this done in ASP?
Below is the code:
// This is the class with the events:
public class Password
{
public class MessageEventArgs
{
public string Message { get; set; }
}
public delegate void MessageEventHandler(object sender, MessageEventArgs e);
public event MessageEventHandler PasswordChanged;
public event MessageEventHandler PasswordError;
public event MessageEventHandler StatusChanged;
public event MessageEventHandler StatusChangedError;
public void ChangePassWord(User user)
{
if (user.OldPassword == "MyPassword")
...
Go to the complete details ...