|
-
Apr 28th, 2004, 11:23 PM
#1
Thread Starter
Lively Member
Inheriting a Web-Form with its controls
There are few web-pages in my project which have exactly the same header and footer and button controls.
How can i create a common Parent Form (which actually wont be browsed ever) which can be inherited in all the child forms so that I donot have to design the header, footer, buttons in each of them and do not have to code their everytime in their code-behind.
-
Apr 29th, 2004, 12:33 AM
#2
PowerPoster
-
Apr 29th, 2004, 04:28 AM
#3
Thread Starter
Lively Member
What If i donot want to use Usercontrol
I want to Inherit exactly
-
May 2nd, 2004, 08:31 PM
#4
Frenzied Member
Tell me, how do you plan to inherit the .aspx file? or are you going to try to Response to write the html code that uses the controls and events in the inherited class? Why wouldn't you want to use the user control? Granted they don't seem to nest but it is a great thing. Say you need a combobox/listbox on 30 pages that binds to user data would you rather coded it 30 time or once?
I think a user control would be your best answer here.
Magiaus
If I helped give me some points.
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
|