473,382 Members | 1,359 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,382 software developers and data experts.

effecient template system

Hello,

I have created a website that uses a combonation of a content
management system and static html pages.

The CMS is built with asp.net, and now I am trying to determine the
best way to pull in the html content into my asp.net site. So far what
I have done is when someone requests a specific query string, I read
the html file using StreamReader and then output to a UserControl with
a LiteralControl in it to display the static content.

Is there a more effecient way to accomplish this? When this site goes
live, off the bat it will be getting 1000-2000 hits a day and I want to
make sure the performance of the site is where it needs to be.

THank you!

Sean

Nov 19 '05 #1
2 882
The system you have is okay, but it can be a bit heavy handed when simply
redirecting someone to the HTML page is more efficient. Consider attacking
from another angle: Set up an HTTP Handler up front that dissects the URL and
then send the user to the appropriate page, HTML or ASP.NET based on your
dissection. This will allow you to be rather full-featured on redirects
without incurring a huge perf penalty. On the negative side, this approach is
a bit more tedious to program and debug; in that case, a simple redirect may
be in order.

Hope this helps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"DKode" wrote:
Hello,

I have created a website that uses a combonation of a content
management system and static html pages.

The CMS is built with asp.net, and now I am trying to determine the
best way to pull in the html content into my asp.net site. So far what
I have done is when someone requests a specific query string, I read
the html file using StreamReader and then output to a UserControl with
a LiteralControl in it to display the static content.

Is there a more effecient way to accomplish this? When this site goes
live, off the bat it will be getting 1000-2000 hits a day and I want to
make sure the performance of the site is where it needs to be.

THank you!

Sean

Nov 19 '05 #2
the reason I opted to read the html files in, is because the site is in
asp.net, there are a number of static pages that are usually just
content wrapped in a table. For this reason I couldnt redirect them to
the html page because the shell of the site is in ASP.NET

thank you

sean

Nov 19 '05 #3

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

Similar topics

16
by: Andrea A | last post by:
Hi, i'm developing a website that will have an huge amount of visitors a day --> it will be a contest with 100.000$ of prize. I'm concerning about using a template class (and which one do you...
3
by: Steve | last post by:
Is there any way of specifying the startMode when using the xslTransform class? We are updating code which used msxml to the system.xml classes but can find no way to specify the startMode. We...
10
by: Amit | last post by:
Which is more efficient and why? p++ or ++p. Thanks.
0
by: Andrea Trevisan | last post by:
That's a revival of a known thing I suppose.I hope it's useful. My problem was: I want to have a DataGrid with two Template columns: first with TextBox,second with Button.I want to fire an event...
0
by: Daniel Perron | last post by:
Hi, I was trying to use Galois.Net to specify code generators and I had to look for some text template tool to simplify the syntax. I was looking for something similar to the syntax of an...
2
by: damonf | last post by:
I'm currently trying to add an ASP hyperlink to a template column in a datagrid. The normal hyperlink column doesn't give me the ability to add attributes to the item. In my grid there are four...
2
by: John Boers | last post by:
I am trying to create a template for my website. But I have a problem, the system says BC30469: Reference to a non-shared member requires an object reference and points to the statement...
0
by: Isz | last post by:
PROBLEM: This problem is related to the postback and handling events correctly. BACKGROUND: I have a datalist which acts as a tabbes list with horizontal layout. This datalist is bound to a...
4
by: | last post by:
I am working with an application that requires multithreading. I have found a sample online that I am currently working with/learning from. However, I am not sure if this is the most effecient...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.