Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-02-2003, 05:51 AM   #1
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
writing HTML from ASP

just wondered if there was a quicker way than executing the asp, writing all the created code to a string, and using the file system object to save it as a html document???

any ideas?
chris1977uk is offline   Reply With Quote
Old 09-04-2003, 11:54 AM   #2
Member (10 bit)
 
Join Date: Jan 2001
Location: Birmingham, UK.
Posts: 553
Send a message via Yahoo to dj4uk
Why do you need to write it as a static html file? - surely the html code could be output dynamically from the asp page or am I missing a reasonm why you are doing this?

DJ
dj4uk is offline   Reply With Quote
Old 09-05-2003, 03:49 AM   #3
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
there are a few advantages to writing the html code, mainly search engines pick it up, they dont pick up asp very well at all.

so to have a static page too is beneficial, i have done it, using the FSO and a variable string, long winded but it works very well, just wondered if there was a shortcut
chris1977uk is offline   Reply With Quote
Old 09-05-2003, 03:54 AM   #4
Member (10 bit)
 
Join Date: Jan 2001
Location: Birmingham, UK.
Posts: 553
Send a message via Yahoo to dj4uk
I'm not quite sure what you mean about search engines picking up asp pages cos they do that fine after all as far as the search engine is concerned the asp page just contains html code. ASP pages have no disadvantage over html pages so what you are doing is probably of no benefit at all.

DJ
dj4uk is offline   Reply With Quote
Old 09-05-2003, 03:59 AM   #5
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
the asp only creates the html code when its executed though, and the search engines dont execute it to read its content.

they dont read scripts because they are dynamic and the content changes, they weigh html documents more, so having .html docs on the server will bring in more traffic, thats the advantage.
chris1977uk is offline   Reply With Quote
Old 09-05-2003, 04:03 AM   #6
Member (10 bit)
 
Join Date: Jan 2001
Location: Birmingham, UK.
Posts: 553
Send a message via Yahoo to dj4uk
I think you are getting confused between client-side and server-side code. Remember the search bots don't have access to the server-side code they simply request a page and the asp script generates the html code for the request. You are right in respect to client-side code though.

DJ
dj4uk is offline   Reply With Quote
Old 09-05-2003, 04:55 AM   #7
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
thanks for the advice DJ, i was under the impression html was more favourable.

i shall do some research

thanks again
chris1977uk is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2