Hmm... I need to find out myself. I don't know what is the right answer to your question. I'll do some poking around and get back to you if I discover an good answer. You should email the people at iPage as they probably know..
Ok here we go again Mr Scoutt... Looks like we can argue this one for a while..
Other than including the declaration of:.
<%@ language="vbscript" %>.
The way to go is to write the page in html and declare it as html as this is what asp is intended for to a major extent. ASP is a language to dynamically interface with data on a given server and return results back as HTML.asp actually indicate that the file is written in HTML with on occassion, not always, some vbscript scripting...
.inc is the a standard and acceptable way of suffixing asp include files...
Ok so tell me if you named your html page .html adn added ASP to that page and still kept it as html, do you think the server will parse it as ASP or html......
It will show all the asp you put into it and the html will run ok. by naming a page with a asp extension tells the server to parse it like asp not html. hence if the server sees the html it will not parse it as serverside langauge. why do you think you should use shtml? it tell the server that there is serverside includes in this document and should be parsed as such, not plain html. it doesn't take a server to run html, but it takes it to run serverside language. by telling the server you have asp as the extension it is making the server work twice as hard as it would not normally do it if was just plain html..
Do you understand that..
I agree, but for security reason you shouldn't do it like that...
If you asp in a .html document that is perfectly valid... all you do is declare that there is some vbscript in the page with the correct language declaration. This works fine. By telling the server it is ASP you are telling it that the page is HTML on the front end..
As for the argument regarding SHTML I can't argue too well as SHTML is a complete mystery to me at the moment. As for ASP, the protocols were created to return data as html and thus the source cannot be read in full. The source you can read is the returned document that will always open as <html> with none of the VBscript language in it or the addresses for the includes..
Take this page for example..
Try and view the ASP modules, you cant and I challenge you to do so... you will also notice the page returns the source in nothing but plain ole HTML but the file is a .asp file..
As for security reasons you can't read the full address of the include unless you write the page wrong, and that would go for any language that I know of...
Your missing the point here entimp. if you use asp in a html page it will not render. if you use vbscript (client side asp) then it will render as html. maybe I don't fully understand ASP but in php if you have an include as a *.inc and some person knws about this file, all they have to type is you page.inc in the address bar and view whatever is in that file. WHY, that is because the server doesn't know that inc is a serverside page and should be processed as such. the server doesn't care if it doesn't have anyhting to do with serverside language it will run it as plain html page, thus showing all your info in this file as you have coded it.
Now that I just explained that you can see where I am coming from as I would suspect all serverside langauge should react the same..
But in all fairness if you use.
<!#include virtual="nav.inc" >.
The sever will parse it as a shtml file instead...
I'm off to work but will come back to this in the morning... we are both right in some respects, will clarify later...
Well, after hearing both of you all making your own stand, I would like to go back to my question. If I don't want to use *.asp as scoutt you said that is not a good way to do it, how should I do it? How do I include include file in html? Is that possible? If not, what would be other ways?..
Sorry ngaisteve1, we get carried away sometimes..
I beleive it is something like that, been awhile since I used it..
It's ok with that. Yeah, I tried the way you taught me but it doesn't work. So, I tried to validate it in.
I posted my code here,.
So, what's wrong here and solution for it? Tx...
I just tried the URL to your test page, but got a 404 error (no page)..
I'm with Scoutt on the PHP/ASP parsing. I use IIS, and I have to tell which extensions are to be parsed through the PHP pre-processor software. I suppose you could tell the server to pass .inc files through the ASP pre-processor (does it work like that?) too...
I am sorry hondrous. Perhaps, I tested it locally. Now, it is uploaded...
I follow that, look at my code. But, dooesn't work. In my page.html got message.
Testing. if you can see. hurray!.
But, since I can't see it, it means that scoutt's way doesn't work. So, what should I do?..
I am still getting a 404 error - file not found - from your link..
This should, of course, be:.
Mutter.. mumble.. darn validator...
Just as I hit the [.
] button I spotted the.
Extension in the example, then my computer locked up. It then took ages to find this thread again. Hmm, let me revise that:.
Code, you'll need:.
Includes, I'm not sure if this a valid way or not..
Horus, he has a period on the end of the url..
What is in the page.html??..
Page.html got this message.
Testing. if you can see. hurray!.
You may try it.
So, what extention should I use for include file *.js or *.html?..
Im not sure if you have this one figured out yet but what works for me is naming your main file *.shtml and naming your include with a *.htm extension. I'm not sure if this is kosher but it works for me. as for how to "call" the include into the file I use:.