G
Guest
Can anyone help with this problem.
I’ve started using Visual Studio 2005. In 2003 if I wanted to create a
button dynamically in ASP.NET with a click event I just did this
Button MyButton = new Button();
MyButton.Click += new EventHandler(MyButton_Click);
And the resulting on click methos worked fine.
Now in Visual studio 2005 if I use the same technique Vis Studio creates a
method with the folowing
void MyButton_Click(object sender, EventArgs e)
{
throw new Exception("The method or operation is not
implemented.");
}
And the event will not fire. Does anyone know why this has changed and what
can I do to make it fire?
I’ve started using Visual Studio 2005. In 2003 if I wanted to create a
button dynamically in ASP.NET with a click event I just did this
Button MyButton = new Button();
MyButton.Click += new EventHandler(MyButton_Click);
And the resulting on click methos worked fine.
Now in Visual studio 2005 if I use the same technique Vis Studio creates a
method with the folowing
void MyButton_Click(object sender, EventArgs e)
{
throw new Exception("The method or operation is not
implemented.");
}
And the event will not fire. Does anyone know why this has changed and what
can I do to make it fire?