|
-
May 2nd, 2002, 10:07 AM
#1
Thread Starter
Member
How to create a new web form which inherites from a base web form
This may be a simple question but I am learning, and would very much appreciated for suggestions.
Usually we make all pages of a web site having a common appearance, say, fixed frame areas, headers and footers etc. Of course in .NET we implement every page with a web form. But how can I draw a standard, base webform with some fixed wordings, controls, links etc so that all other pages look the same to it. I guess inheritance should be a proper choice, but I can't find a wizard feature like the "window form" project where we can add "inherited window form".
I know that we can define a class with inheritance from System.Web.UI.Page, then we can build new pages by inheritating from this BasePage.
Coding as follows:
Namespace MyPages
Public Class BasePage
Inherits System.Web.UI.Page
Public Function Whatever()
....Function Goes Here
End Function
End Class
End Namespace
However, this gives me a new class only, not a aspx file and there is no designer associated with it so that I cannot easily add in controls by dragging and dropping from the toolbox.
What would be a proper way to create a new web form from a base web form ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|