Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button Event Handler scope (private vs public) ?
Message
De
01/09/2005 15:25:54
 
 
À
31/08/2005 15:30:15
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:
01045965
Vues:
29
This message has been marked as the solution to the initial question of the thread.
>>ASP.NET v1.1 (VS.Studio 2003)

Well, the mystery is solved. My knowledge of ASP.NET certainly went up a notch or two.

I developed te whole app in VS 2005 (ASP.NET 2.0) as it has a better environment, editor, debugger, etc. As I cannot deploy internally until it is released (no Beta allowed in production servers), I retrofitted the app to VS 2003 temporarily. It took some adjustments and everything worked fine until I added the LinkButtons I mentioned.

Turns out that I had copied the aspx page and code from a working 2.0 page into a 1.1 project blindly and unknowingly overwriting the Web Form Designer generated code:
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
   //
   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
   //
   InitializeComponent();
   base.OnInit(e);
}
That is why InitializeComponent() wasn't triggering. I understood that it wasn't triggering. I just didn't know why. After countless new white hairs were generated I figured it out. As a first time ASP.NET project it did not cathc my eye that the section was missing, until I compared with a brand new generated project and saw the code.\

Thanks for your patience. Now I need a drink!


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
Répondre
Fil
Voir

Click here to load this message in the networking platform