Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button Event Handler scope (private vs public) ?
Message
From
31/08/2005 09:58:32
 
 
To
31/08/2005 04:38:20
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:
01045467
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform