Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - HTML to ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HTML to ASP

 Post Reply Post Reply
Author
richiepsd View Drop Down
Newbie
Newbie


Joined: 04 August 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote richiepsd Quote  Post ReplyReply Direct Link To This Post Topic: HTML to ASP
    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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post 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.)
Back to Top
richiepsd View Drop Down
Newbie
Newbie


Joined: 04 August 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote richiepsd Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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

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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.