Groups | Blog | Home
all groups > asp.net > july 2003 >

asp.net : Visual Studio deleting my delegates!



Natty Gur
7/23/2003 10:27:42 PM
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


*** Sent via Developersdex http://www.developersdex.com ***
Gandalf
7/23/2003 11:08:54 PM
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.

--


AddThis Social Bookmark Button