Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 27th, 2006, 12:50 PM
Registered User
 
Join Date: Sep 2005
Location: Amman, Amman, Jordan.
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

  #2 (permalink)  
Old December 4th, 2006, 10:54 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
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.

  #3 (permalink)  
Old December 4th, 2006, 11:44 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
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
  #4 (permalink)  
Old December 7th, 2006, 04:40 AM
Registered User
 
Join Date: Sep 2005
Location: Amman, Amman, Jordan.
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

  #5 (permalink)  
Old December 7th, 2006, 10:46 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
all about website benny HTML Code Clinic 2 February 11th, 2008 03: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 10: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 02:59 AM



All times are GMT -4. The time now is 11:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.