Print Page | Close Window

HTML to ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=20912
Printed Date: 29 March 2026 at 8:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: HTML to ASP
Posted By: richiepsd
Subject: HTML to ASP
Date Posted: 04 August 2006 at 11:20am
I'm completely new to ASP and have read the info about creating ASP pages. It seems that there are very few alterations to be made to standard HTML code to create an ASP page.
 
I have tried to change the code to work via ASP but can't seem to do it.
 
Is it possible to change a standard HTML page into an ASP  page by adding/removing any pieces of code?
 
My server provider supports ASP.
 
Thanks



Replies:
Posted By: Scotty32
Date Posted: 04 August 2006 at 12:59pm
you use asp AND html

all ASP does is processing behinds the scenes

for example, retreiving records from a database, you still need html to display them in the browser

if you wanted to display a personal page you could do:

<font size="3">Hello <i><%=Request.QueryString("name")%></i>, how are you.</font>


the ASP is in red, and the HTML is in green, in the above code, it would display "hello name, how are you", with "name" being replaced by what ever is entered into the address bar, eg "mypage.asp?name=Scotty32"


so to answer your question - you can change html pages into asp pages simply by changing the extention to .asp, you only need to "add/remove" code where you want to acctually use ASP, like my example above.

you can use includes, which can be helpfull for your navigation system and headers, so you only need to edit one file.

as i said, it all depends on what you acctually want to do


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: dfrancis
Date Posted: 04 August 2006 at 1:20pm
Just don't forget to change the extension of the page from htm to asp and then redirect traffic to the new page for a while using meta refresh and a link. I remember when I was new... that little detail caused more than a few new gray hairs. (And I aint talking about bunny rabbits.)


Posted By: richiepsd
Date Posted: 07 August 2006 at 10:47am
Hi, thanks for your answer. What I'm trying to do is change my website so that it is viewable on all/most operating systems as well as it can be.
 
At the moment it doesn't look how I would like it to on everyones p.c. and because of this I'm advised that changing the site from a purely HTML site to a .ASP site would help resolve this problem.
 
I was hoping there would be a piece of code that could be inserted at the beginning and end of the HTML to change the whole page to .ASP
 
Once again I appreciate your help!
 
If you would like to view the page visit http://www.homefirepro.co.uk - http://www.homefirepro.co.uk
 


Posted By: dpyers
Date Posted: 07 August 2006 at 12:23pm
Always helps to know the problem you're trying to fix.

You picked the wrong solution. ASP will not help in this instance. You have bad html that needs to be corrected before you have a shot at having things look the same in various browsers
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.homefirepro.co.uk%2F - http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.homefirepro.co.uk%2F

Get FireFox and download the web developer toolbar to make it easier to validate the rest of your pages.

Once the html is corrected, the page may still look different in different browsers. The best you can do as a web designer is suggest a design. It's up to the browser to figure out how to implement your suggestion.  Each browser does things a little differently - e.g. the amount of margin and padding used for a table or paragraph tag varies. You can use css to address a lot of the differences, but not all of them. Pixel-perfect is for paper. For the web, you need stuff that looks good under a variety of browsers and screen resolutions - that's what web design is all about.

Just an FYI - the page looks very professional except for the animated gif's - they bring in a cheesey amature element that's not consistent with the message the rest of the page gives.



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net