visual inheritance of web form

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default visual inheritance of web form

    hello friends,

    i have been developing an application in asp.net.

    i want to inherit a web page on all other web pages of
    my application.

    i took a form and callded it mybaseform1.

    then i took another form, say webform1, and tried to
    inherit
    mybaseform1 with this page in its codebehind file as
    follows.

    public class webform1
    inherits mybaseform1

    end class


    i observed that this does not work in asp.net for web forms
    but it works very well form windows forms.

    so how can i achieve this ?

    please help me in this matter.

    thank you.
    varun Guest

  2. Similar Questions and Discussions

    1. Show PDF File in Windows Form using Visual Basic 2005
      Hello. I am a developer beginner in acrobat products. I'm developing an application and I need to open one pdf file in one form with various...
    2. inheritance
      by default new aspnet webforms inherits from page which gives us the intellisense of the basic objects such as request, response etc. I want my...
    3. Inheritance in ActionScript
      Hi, I am trying to get to grips with Inheritance in ActionScript.. I have created a symbol in the library called "Wall" and it is linked to a...
    4. Multiple Inheritance.
      On Wednesday, August 20, 2003, at 04:30 PM, Erich Musick wrote: Methods are the easy part: our @ISA = qw(ClassOne ClassTwo Etc); Perl...
    5. Page inheritance
      I have created an aspx page called Page1. The class associated with the page in code behind is abstract. Now I want to create another aspx page...
  3. #2

    Default Re: visual inheritance of web form

    check out the master pages in the control gallery. If you are going to use a
    technique, that's the one to use.

    hth,
    Dave
    [url]www.aspnetemail.com[/url]



    "varun" <varun_789@yahoo.com> wrote in message
    news:01a801c342dd$8fd655a0$a001280a@phx.gbl...
    > hello friends,
    >
    > i have been developing an application in asp.net.
    >
    > i want to inherit a web page on all other web pages of
    > my application.
    >
    > i took a form and callded it mybaseform1.
    >
    > then i took another form, say webform1, and tried to
    > inherit
    > mybaseform1 with this page in its codebehind file as
    > follows.
    >
    > public class webform1
    > inherits mybaseform1
    >
    > end class
    >
    >
    > i observed that this does not work in asp.net for web forms
    > but it works very well form windows forms.
    >
    > so how can i achieve this ?
    >
    > please help me in this matter.
    >
    > thank you.

    dave wanta Guest

  4. #3

    Default Re: visual inheritance of web form

    btw, I'm not saying master pages are necessarily better (especially compared
    to some of the 3rd party products), its just that it might help you a year
    or two from now.

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]




    "dave wanta" <nospam@nospam.com> wrote in message
    news:OgmVghuQDHA.2128@TK2MSFTNGP12.phx.gbl...
    > check out the master pages in the control gallery. If you are going to use
    a
    > technique, that's the one to use.
    >
    > hth,
    > Dave
    > [url]www.aspnetemail.com[/url]
    >
    >
    >
    > "varun" <varun_789@yahoo.com> wrote in message
    > news:01a801c342dd$8fd655a0$a001280a@phx.gbl...
    > > hello friends,
    > >
    > > i have been developing an application in asp.net.
    > >
    > > i want to inherit a web page on all other web pages of
    > > my application.
    > >
    > > i took a form and callded it mybaseform1.
    > >
    > > then i took another form, say webform1, and tried to
    > > inherit
    > > mybaseform1 with this page in its codebehind file as
    > > follows.
    > >
    > > public class webform1
    > > inherits mybaseform1
    > >
    > > end class
    > >
    > >
    > > i observed that this does not work in asp.net for web forms
    > > but it works very well form windows forms.
    > >
    > > so how can i achieve this ?
    > >
    > > please help me in this matter.
    > >
    > > thank you.
    >
    >

    dave wanta Guest

  5. #4

    Default Re: visual inheritance of web form

    Hi dave,

    i found your answer too short to understand.

    can you explore it a bit ?

    where are control gallery ?

    what are master pages ?

    plase help me here if you can.

    thank you.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    varun varun Guest

  6. #5

    Default Re: visual inheritance of web form

    Hi,
    no prob!
    here you go:

    [url]http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=385&tabindex=2[/url]

    Cheers!
    Dave
    [url]www.aspNetEmail.com[/url]



    "varun varun" <anonymous@devdex.com> wrote in message
    news:#iEQoOvQDHA.2476@TK2MSFTNGP10.phx.gbl...
    > Hi dave,
    >
    > i found your answer too short to understand.
    >
    > can you explore it a bit ?
    >
    > where are control gallery ?
    >
    > what are master pages ?
    >
    > plase help me here if you can.
    >
    > thank you.
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    dave wanta Guest

  7. #6

    Default Re: visual inheritance of web form



    hi dave,

    i found that there is a problem with masterpages.

    let me first tell you that i use visual studio.net
    enterprise edition.

    i opened a new web application ,say webapplication1, at its
    default location in wwwroot directory.

    then i tried to unzip masterpages into the folder
    webapplication1.

    then i ran mk.dll but nothing happened.

    i could not run the application and see what is exactly happening.

    also, i found that this version of masterpages is in C#.

    firstly, i am a poor developer in vb.net.

    so C# is just too tough for me.

    so if possible, try to provide me vb.net version of the
    same code.

    also if you can, dictacte the exact stpes to follow to
    accomplish successful running of this code.

    so please help me in this matter.

    thank you.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    varun varun Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139