Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button Event Handler scope (private vs public) ?
Message
De
31/08/2005 09:58:32
 
 
À
31/08/2005 04:38:20
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:
01045467
Vues:
28
>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



Weird is right. I understood your example to be the norm. But in this case it didn't work and - being new to ASP.NET - I'm trying to figure out why. Thanks.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform