Re: reusing codebehind files?

Discussion in 'ASP .Net' started by Scott Allen, Apr 13, 2004.

  1. Scott Allen

    Scott Allen Guest

    Using the exact same code behind isn't possible, but try placing the
    code you want to share into a class that you can use from either
    object.

    --
    Scott
    http://www.OdeToCode.com

    On Tue, 13 Apr 2004 11:06:46 +0200, "Anders Bohlin" <>
    wrote:

    >hi.
    >
    >I got a mainpage wich uses cutom controls.
    >i want to use the same codebehind for the customcontrol as i have for the
    >mainpage. is this possible?
    >
    >yours truely /Anders
    >
     
    Scott Allen, Apr 13, 2004
    #1
    1. Advertisements

  2. okay, thanx

    "Scott Allen" <bitmask@[nospam].fred.net> wrote in message
    news:...
    > Using the exact same code behind isn't possible, but try placing the
    > code you want to share into a class that you can use from either
    > object.
    >
    > --
    > Scott
    > http://www.OdeToCode.com
    >
    > On Tue, 13 Apr 2004 11:06:46 +0200, "Anders Bohlin" <>
    > wrote:
    >
    > >hi.
    > >
    > >I got a mainpage wich uses cutom controls.
    > >i want to use the same codebehind for the customcontrol as i have for the
    > >mainpage. is this possible?
    > >
    > >yours truely /Anders
    > >

    >
     
    Anders Bohlin, Apr 13, 2004
    #2
    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. John Spiegel

    Newbie: Multiple codebehind files

    John Spiegel, Aug 27, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    6,382
    bboland1
    Aug 30, 2007
  2. =?Utf-8?B?VGhvbWFzIEFuZGVyc3Nvbg==?=

    Aspx-files sharing the same codebehind?

    =?Utf-8?B?VGhvbWFzIEFuZGVyc3Nvbg==?=, Dec 8, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    553
    Steven Cheng[MSFT]
    Dec 9, 2004
  3. Replies:
    2
    Views:
    718
    vMike
    May 26, 2005
  4. Martin Eyles

    reading XML files from codebehind file

    Martin Eyles, Jun 27, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    759
    Kevin Spencer
    Sep 13, 2005
  5. Replies:
    1
    Views:
    478
    =?Utf-8?B?RFdT?=
    Feb 7, 2006
  6. BB
    Replies:
    0
    Views:
    472
  7. Vince C.
    Replies:
    1
    Views:
    2,520
    Vince C.
    Jul 2, 2003
  8. pintu

    2 codebehind files and ..

    pintu, Aug 18, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    506
    Mark Rae
    Aug 18, 2006
Loading...