|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
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? |
|
|
|
|
|
#2 |
|
Member (10 bit)
|
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 |
|
|
|
|
|
#3 |
|
Member (7 bit)
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
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
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 |
|
|
|
|
|
#5 |
|
Member (7 bit)
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. |
|
|
|
|
|
#6 |
|
Member (10 bit)
|
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 |
|
|
|
|
|
#7 |
|
Member (7 bit)
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|