Include vs user controls

M

Murphy

I have a number of pages that include basic html such as "About" and I have
delegated the upkeep of these pages to various staff.
I am concerned about having the staff edit the aspx file directly as there
is more than just the html page content in there and I don't want it stuffed
up. Until now I have put the content in an aspx that is placed on the aspx
however as the content is mere html should I simply put it in a text file
and use an include as opposed to a user control ?

Comments ?

Thanks

Murphy
 
S

Steve C. Orr [MVP, MCSD]

Include files are old fashioned.
Nowdays the best practice is to use user controls instead.
 
C

clintonG

Google: "include"+"user control" for results supporttive of Steve's
comments. It all comes down to the fact that user controls allow
programmatic inclusion and include directives are cripple-code.


A well crafted article...

http://www.aspfree.com/c/a/ASP.NET/Migrating-from-ASP-to-ASP.NET/6/

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top