Visual Studio deleting my delegates!

  • Thread starter Thread starter Gandalf
  • Start date Start date
G

Gandalf

I use VS.NET 2003 and C# to write ASP.NET pages. VS keeps deleting the
delegates I manually code into the InitializeComponent() method. Ones that
it adds are ok. Thing is, in some cases there's no way around coding your
own, such as when a webcontrol is inside another webcontrol and you can't
access it thru the designer.

This is causing me a lot of hassle. Help appreciated.

--
 
Hi,

The designer will override the InitializeComponentmethod content. MS
even worn you with note at the pricedure :
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>

you can create you own function and call it from OnInit.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
Back
Top