G
Guest
Newbie to web development here: I inherited an eCommerce site that seems
oddly designed- There are 15 or so .aspx pages that provide content, input,
etc. Each page has a consistent look and feel, banner and logo, buttoms and
menulinks across the top bottom and sides.
What's odd is each .aspx contains the exact same code (html) for the
"static" items such as background, menus, etc. Tucked in the middle in a
table cell is a <div> that contains the "variable" content for that page such
as login dialog, shopping cart, etc. To create a new .aspx we need to copy
everything then edit the content within the <div>
My question is should I move this html out to a separate "inherited"
location and how best to do it? IOW how can I derive, inherit, subclass
html? I've experimented with loading html dynamically and manually creating
controls but this seems kludgy and I can't use the wysiwyg designer.
The underlying server side C# code does handles the logic in one base class
so that's not the problem, just the html. It's a real pain to maintain this
way and I suspect much slower since every change in content must be loaded
from scratch. Is this a case for Frames? I've read to avoid frames but this
seems like what should be used.
oddly designed- There are 15 or so .aspx pages that provide content, input,
etc. Each page has a consistent look and feel, banner and logo, buttoms and
menulinks across the top bottom and sides.
What's odd is each .aspx contains the exact same code (html) for the
"static" items such as background, menus, etc. Tucked in the middle in a
table cell is a <div> that contains the "variable" content for that page such
as login dialog, shopping cart, etc. To create a new .aspx we need to copy
everything then edit the content within the <div>
My question is should I move this html out to a separate "inherited"
location and how best to do it? IOW how can I derive, inherit, subclass
html? I've experimented with loading html dynamically and manually creating
controls but this seems kludgy and I can't use the wysiwyg designer.
The underlying server side C# code does handles the logic in one base class
so that's not the problem, just the html. It's a real pain to maintain this
way and I suspect much slower since every change in content must be loaded
from scratch. Is this a case for Frames? I've read to avoid frames but this
seems like what should be used.