using common code in ascx and aspx classes

Discussion in 'ASP .Net' started by Vladimír Karásek, Jul 21, 2004.

  1. Hi there,
    does anybody know, how to create a class, which is can be inherited by both
    aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl)
    classes.
    I have the bunch of same methods, which I want to reuse in both ascx and
    aspx classes. Any idea how to do it?
    Thanks for all your hints.
    Vladimír Karásek, Jul 21, 2004
    #1
    1. Advertising

  2. This link gives a solution:

    http://aspalliance.com/articleViewer.aspx?aId=67&pId=


    --
    Bryant Hankins
    Numinet Systems Inc.
    http://www.numinet.com



    "Vladimír Karásek" <> wrote in message
    news:...
    > Hi there,
    > does anybody know, how to create a class, which is can be inherited by

    both
    > aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl)
    > classes.
    > I have the bunch of same methods, which I want to reuse in both ascx and
    > aspx classes. Any idea how to do it?
    > Thanks for all your hints.
    >
    >
    Bryant Hankins, Jul 21, 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. Quentin
    Replies:
    1
    Views:
    486
    Quentin
    Jul 29, 2003
  2. Jason Shohet
    Replies:
    1
    Views:
    482
    Kevin Spencer
    Nov 10, 2003
  3. Vladimír Kolesnik

    using common code for aspx and ascx classes

    Vladimír Kolesnik, Jul 21, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    802
    Vladimír Kolesnik
    Jul 22, 2004
  4. Garth17
    Replies:
    3
    Views:
    3,030
    Brock Allen
    Mar 18, 2005
  5. Replies:
    2
    Views:
    536
Loading...

Share This Page