Auto Declare a Web User control (in the code behind) on Drop

Discussion in 'ASP .Net Web Controls' started by kwkahler, Aug 4, 2005.

  1. kwkahler

    kwkahler Guest

    Anyone remember how to make a Web User Control automatically declare itself
    in the code behind file when dragged to an aspx page?

    Today I always go into the code behind and manually write: Proteced myctrl1
    as myctrl

    I read about it once, but I can't find the documentation for it anymore.

    Thanks--

    William Kahler
    ..NET Developer, MCSD
     
    kwkahler, Aug 4, 2005
    #1
    1. Advertisements

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. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    845
    Alphonse Giambrone
    Jun 28, 2003
  2. Max
    Replies:
    7
    Views:
    3,788
    Kevin Spencer
    Jan 20, 2004
  3. Technical Support
    Replies:
    2
    Views:
    814
  4. hansiman

    code behind in a web user control

    hansiman, Jan 3, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    583
    hansiman
    Jan 4, 2005
  5. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    737
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
  6. Michael Morse

    Accessing Web User Control from code behind

    Michael Morse, Jan 23, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    187
    Michael Morse
    Jan 23, 2004
  7. Jason
    Replies:
    0
    Views:
    191
    Jason
    Oct 6, 2005
  8. Replies:
    5
    Views:
    551
Loading...