Dec 15, 2006 10:41 AM|Dave Hayden|LINK
I feel like a first-time programmer again using IronPython, which isn't all bad [:D]
The ASP.NET Personal Web Starter Kit doesn't show an example of something like this:
Button1.Click += Button1_Click
def Button1_Click(sender, args):
Label1.Text = "button1"
Everytime the Button1_Click event handler runs into Label1.Text, the application throws an exception saying Label1 does not exist.
However, if I define something like this:
<asp:Buttton ... OnClick="Button1_Click" ../> and removing Page_Init altogether, everything works fine.
I am sure it is a newbie mistake, but I am at a loss.