|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
effecient template systemHello,
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 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. -- Show quoteHide quoteGregory 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 > >
Other interesting topics
ASP.NET image - remove border attribute (c#)
Httphandler redirection to document -- GetCompiledPageInstance dropdowncontrol problem trying to show images in the grid Project in modules Page Expired Warning Instantiate UserControl without LoadControl Form based security using frames Storing Enums in web.config Restarting IIS after installation of a new Webapplication |
|||||||||||||||||||||||