D
David Laub
Visual Studio .net 2003 automatically creates resx files with three entries
in them. What I don't understand is:
1) sometimes additional entries are automatically placed in the resx file,
and I don't understand what is triggering this. e.g. some of my app
specific objects wind up in the resx file auto-magically.
2) building on 1) above, these additional resources are then referenced in
the cs file InitializeComponent method, which is fine, BUT, sometimes,
completly unrelated web pages will have the same resource references placed
into their InitializeComponent method, resulting in run-time errors. I can
comment out these lines, but, of course, they keep coming back because
InitializeComponent is auto generated. This is a real mystery, and is
driving me crazy!! A code excerpt follows:
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(ClientProfile));
this.htxtWNSTSelectedNodes.TextChanged += new
System.EventHandler(this.htxtWNSTSelectedNodes_TextChanged);
this.htxtWNSTClntID.TextChanged += new
System.EventHandler(this.htxtWNSTClntID_TextChanged);
this.tabCP.TabClick += new
Infragistics.WebUI.UltraWebTab.TabClickEventHandler(this.tabCP_TabClick);
this.btnNextSVD.Click += new System.EventHandler(this.btnNextSVD_Click);
this.GlobalClientName = "XYZ Corp.";
// this.VIMSurplusVehicle =
((VIM.Components.Vehicle.SurplusVehicle)(resources.GetObject("$this.VIMSurpl
usVehicle")));
// this.VIMVehicleRequest =
((VIM.Components.Vehicle.NewVehicle)(resources.GetObject("$this.VIMVehicleRe
quest")));
this.Load += new System.EventHandler(this.Page_Load);
}
Any help would be appreciated!
David Laub
in them. What I don't understand is:
1) sometimes additional entries are automatically placed in the resx file,
and I don't understand what is triggering this. e.g. some of my app
specific objects wind up in the resx file auto-magically.
2) building on 1) above, these additional resources are then referenced in
the cs file InitializeComponent method, which is fine, BUT, sometimes,
completly unrelated web pages will have the same resource references placed
into their InitializeComponent method, resulting in run-time errors. I can
comment out these lines, but, of course, they keep coming back because
InitializeComponent is auto generated. This is a real mystery, and is
driving me crazy!! A code excerpt follows:
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(ClientProfile));
this.htxtWNSTSelectedNodes.TextChanged += new
System.EventHandler(this.htxtWNSTSelectedNodes_TextChanged);
this.htxtWNSTClntID.TextChanged += new
System.EventHandler(this.htxtWNSTClntID_TextChanged);
this.tabCP.TabClick += new
Infragistics.WebUI.UltraWebTab.TabClickEventHandler(this.tabCP_TabClick);
this.btnNextSVD.Click += new System.EventHandler(this.btnNextSVD_Click);
this.GlobalClientName = "XYZ Corp.";
// this.VIMSurplusVehicle =
((VIM.Components.Vehicle.SurplusVehicle)(resources.GetObject("$this.VIMSurpl
usVehicle")));
// this.VIMVehicleRequest =
((VIM.Components.Vehicle.NewVehicle)(resources.GetObject("$this.VIMVehicleRe
quest")));
this.Load += new System.EventHandler(this.Page_Load);
}
Any help would be appreciated!
David Laub