473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

HTML Reuse for Web Pages

LK
Hi,

I suspect this question has been asked before, but I couldnt find anything
specific when I did search. I a using Visual Studio 2003, and .NET 1.1. My
problem is in understanding the best practices for reuse of HTML across my
ASP.NET pages. I seem to be copying and pasting a whole bunch of html per
page, just so they look the same. Is there a best practice pattern for this
type ofg thing?

Thanks

LK.
Nov 19 '05 #1
1 1782
One of the most common solutions is to make these common HTML sections into
controls.
There are two kinds of controls you can make, User Controls and Custom
Controls.
User Controls are quick and easy, while Custom Controls are more reusable
and tend to have more of a a professional polish.
Here's more info:
http://SteveOrr.net/faq/usercustom.aspx
http://SteveOrr.net/articles/InheritAndExtend.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"LK" <fr**@here.com> wrote in message
news:eh*************@TK2MSFTNGP12.phx.gbl...
Hi,

I suspect this question has been asked before, but I couldnt find anything
specific when I did search. I a using Visual Studio 2003, and .NET 1.1.
My problem is in understanding the best practices for reuse of HTML across
my ASP.NET pages. I seem to be copying and pasting a whole bunch of html
per page, just so they look the same. Is there a best practice pattern
for this type ofg thing?

Thanks

LK.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Vince C. | last post by:
Hi. I'd like to process HTML documents in an ASP script, i.e. to remove any unwanted elements and extract desired element and attributes. I know how to do it on client side within IE using its...
4
by: Thomas Scheiderich | last post by:
I am just curious as to when it is better to use straight HTML or ASP (response.write) to put out HTML code on an ASP page. For example, if I have an ASP page that is including another ASP page,...
72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
3
by: Rahul Agarwal | last post by:
Hi In our web page we use a combination of HTML and server side controls and some of them have a custom attribute based on which we need to find and replace the values once the HTML is ready. ...
2
by: simon | last post by:
hello, what i'm looking to do is store the path of the app on a the server for reuse in the site. my thoughts so far are... -make a key in the web.config file -retrieve the value in globals.asax...
3
by: thompson_38 | last post by:
I am currently working on a C# application that uses an axWebBrowser control which displays HTML pages. This is being done to reuse an existing web application which resides on a client's...
1
by: Sam | last post by:
Hi All I have a web page that contains a datagrid and in this data grid, I have a checkbox column template which allow user to select one or more applicant's loan applicantion to print....
1
by: antoneras | last post by:
Hi, I need a little help with a simple script to combine PDF docs. I am not a development guy and I know nothing about perl. Sure someone that does will be able to help in 30 sec's. I have a...
3
by: rajkpy | last post by:
Hi Experts, I have created a login page in php called login.php, it accepts username, password and domain and then does some authentication. IF authentication succeeds it starts a php session and...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.