Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button Event Handler scope (private vs public) ?
Message
From
31/08/2005 04:38:20
 
 
To
30/08/2005 13:35:40
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01045181
Message ID:
01045412
Views:
26
it's bit weird to be honest. VS will declare them private and my code works with them being private as well

i ripped this out of my cuirrent project and this code does fire okay
private void InitializeComponent()
{ 
          this.btnHomePage.Click += new System.EventHandler(this.btnHomePage_Click);
}


private void btnHomePage_Click(object sender, System.EventArgs e)
{
	Response.Write("Done");
}
try making a new page in a new project. VS does get it's knickers in a twist sometimes, like when you drop a control on the form, can see the declaration in the CodeBehind but can't reference it in IntelliSense
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform