Page view counter

ho to inherit code from another page?

Last post 09-03-2008 4:33 PM by amodius. 2 replies.

Sort Posts:

  • ho to inherit code from another page?

    09-03-2008, 9:58 AM
    • Loading...
    • amodius
    • Joined on 07-09-2008, 5:10 AM
    • Posts 36
    • Points 5

     
    hi i have a page named "filter.aspx", tath is used to filter data for each users

    i have create another page: "AdvancedFilter.aspx" tath have the same funcionality of filter.aspx
    but with more parameters

    NOW, for not duplicate the code, i have inserted "inherits filter" in the header of "AdvancedFilter.aspx.vb" but on esecution of code, return "Ambiguous match found"
    how i can resolve it?

  • Re: ho to inherit code from another page?

    09-03-2008, 10:10 AM
    Answer
    • Loading...
    • Jeev
    • Joined on 11-24-2005, 12:49 PM
    • Posts 3,163
    • Points 20,998

     I would recommend moving the common functionality code into a base class and then inherit both the pages from that class

    Base class --inherits System.web.ui.page

    filter.aspx inherits base class

    advancedfilter.aspx inherits base class

    Jeev
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If you get the answer to your question, please mark it as the answer.
  • Re: ho to inherit code from another page?

    09-03-2008, 4:33 PM
    • Loading...
    • amodius
    • Joined on 07-09-2008, 5:10 AM
    • Posts 36
    • Points 5

     great
    and in the page "filter.aspx" i use generally this code: me.DG.rows..... (referred to the datagrid)
    do you conseil me to insert this datagrid on the parameters? or wath

Page 1 of 1 (3 items)