Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embed ASP in HTML 2

Status
Not open for further replies.

Chinyere

Programmer
Mar 9, 2001
79
US
Hi All,

I have a static html front page with ASP pages underneath. I have a login/logout field on the ASP pages but I am having difficulty embedding the same code across to my HTML page.

Is there a way to do this? I also need a way to read the login on the html page so that is a person logins from an ASP page, it will be translated across to the HTML page.

TIA

Chinyere [afro2]
 
Any reason why you don't just change the HTML page into an ASP page?

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
I am under the assumption that a static HTML page would be more useful for indexing through search engines.

If this is not the case, please let me know and I would glady change it to ASP.

Thanks!

Chinyere [afro2]
 
A search engine only sees the output HTML, not the source code, and doesn't care what the file extension is.

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Thank you.

So is it not possible to have an ASP snippet on an HTML page?

Chinyere [afro2]
 
The filetype is what tells the server how to process the file. If it's .HTML or .HTM the server will just send the page. If it's .ASP it will be processed and the reults of the process sent.

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
If you'd like any snippet of ASP to be executed, the file should have a .asp extension. So...no it is not possible to have an ASP snippet on an HTML page. As johnwm has suggested, simply change the file extension and you're in business.
 
Thanks to you both.

I will just change the file extension.

Chinyere [afro2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top