Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 27th, 2006, 01:50 PM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic website to Static website

Dear all,
thanks for this great forum,


I have a website build on asp.net , i need to genrate a html pages that be replaced when update on the aspx files, but when viewing the pages the iis send the html page insetad of running the aspx code behinde.

Thanks again.

Oday

 
Old December 4th, 2006, 11:54 AM
Authorized User
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not only IIS , Every webserver sends only HTML to the client. Thats what the browser can understand.

 
Old December 4th, 2006, 12:44 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You seem to be asking about caching. Is this correct? Or is it that you have html pages (that is, pages with the html extension) that are updated occasionally by some admin aspx files? Please clarify.

Woody Z http://www.learntoprogramnow.com
 
Old December 7th, 2006, 05:40 AM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks woodzy,virendar23

i am asking about pages with the html extension that are updated occasionally by some admin aspx files.

Oday

 
Old December 7th, 2006, 11:46 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

An HTML page is not dynamically processed by ASP.NET when it is requested. If the browser is requesting an HTML page, it is always going to get the HTML as written.

For example, if you have an html page named Info.html, and a browser requests Info.html, the server will return the html that is contained in that page.

However, if you have an aspx page named Info.aspx, then when the browser requests Info.aspx, the server will run the code in Info.aspx along with its code behind page code if it exists, and returns the html that is dynamically generated.

If you only want the aspx code to run occasionally, there are ways to cache the output so that it is only regenerated when the conditions exists that warrant it.

Woody Z
http://www.learntoprogramnow.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
all about website benny HTML Code Clinic 2 February 11th, 2008 04:49 AM
Website development. zaheerabbas.sk ASP.NET 1.0 and 1.1 Basics 0 May 16th, 2007 02:15 AM
search in dynamic website kripashah22 General .NET 0 February 2nd, 2007 11:01 AM
website error kucker6 ASP.NET 1.0 and 1.1 Basics 3 June 1st, 2006 01:08 PM
WebSite Programming xiaoxinge2008 ADO.NET 3 November 16th, 2004 03:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.