Visual Studio deleting my delegates!

Discussion in 'ASP .Net' started by Gandalf, Jul 24, 2003.

  1. Gandalf

    Gandalf Guest

    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.

    --
    Gandalf, Jul 24, 2003
    #1
    1. Advertising

  2. Gandalf

    Natty Gur Guest

    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 ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur, Jul 24, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wh
    Replies:
    2
    Views:
    486
    Cowboy \(Gregory A. Beamer\)
    Jan 16, 2004
  2. Thirumalai
    Replies:
    0
    Views:
    625
    Thirumalai
    May 22, 2006
  3. rockdale
    Replies:
    1
    Views:
    578
    Juan T. Llibre
    Aug 23, 2006
  4. xman
    Replies:
    0
    Views:
    457
  5. xman
    Replies:
    1
    Views:
    554
    Victor Bazarov
    Aug 17, 2005
Loading...

Share This Page