Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2006, 10:41 AM
Authorized User
 
Join Date: Feb 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default convert asp pages to xhtml

Is it possible to convert asp pages to xhtml. ie how would I convert the following. Is there a good article on asp to xhtml that somebody has a link to.

<%@ Language="vbscript" %>
<%Option Explicit%>

<% 'all vbcode code %>

Thanks

Brendon

 
Old March 14th, 2006, 01:52 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You don't "convert" ASP pages to XHTML. You should just make sure that your ASP pages output valid XHTML.

So, for example, this *could* be valid XHTML (except for the missing doc type):
Code:
<%@ Language="vbscript" %>
<%Option Explicit%>

<% 'all vbcode code %>
But it all depends on what your page outputs.

For example, this statement:

Response.Write("Something<br>")

results in invalid XHTML because of the <br> tag while this one:

Response.Write("Something<br />")

outputs valid XHTML.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch convert .htm pages to .asp using template karib Dreamweaver (all versions) 22 July 30th, 2007 04:17 PM
how to convert XHTML pages to ASPX rsatyarthi ASP.NET 1.0 and 1.1 Basics 1 July 26th, 2007 02:52 PM
ASP.NET Generated XHTML Mr Fett BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 February 7th, 2007 01:33 AM
asp pages to xhtml BrendonMelville Ajax 1 March 14th, 2006 01:54 PM
convert asp pages to xhtml BrendonMelville XML 1 March 14th, 2006 11:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.