Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button Event Handler scope (private vs public) ?
Message
De
31/08/2005 04:38:20
 
 
À
30/08/2005 13:35:40
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01045181
Message ID:
01045412
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform