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. Advertising

  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. 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. Rob Meade

    reusing a bit of code?

    Rob Meade, Jan 30, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    348
    Kevin Spencer
    Jan 30, 2004
  2. Dan
    Replies:
    4
    Views:
    9,474
    taylorjonl
    Jun 1, 2007
  3. anon

    Reusing DataSet/DataTable

    anon, Apr 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    494
  4. Thomas Scheiderich

    Reusing DataReader

    Thomas Scheiderich, Apr 11, 2004, in forum: ASP .Net
    Replies:
    11
    Views:
    843
    Cor Ligthert
    Apr 13, 2004
  5. Vince C.
    Replies:
    1
    Views:
    2,281
    Vince C.
    Jul 2, 2003
Loading...

Share This Page