Visual Studio deleting my delegates!

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.

--
 
N

Natty Gur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top