mcgear's Avatar
Newbie Member
Hey all,
Pretty new at this and can't figure out why this simple code won't execute:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en-US" lang="en-US">
	<title>Course Listing</title>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<style type="text/css">
	body {font-family: "Trebuchet MS", Arial, Helvetica, asns-serif, serif }
	h1 { font-size: 1.5em }
	h2 { font-size: 1.2em }
	p { font-size: .8em }
	<%@ language="JScript" %>
	<@ Import namespace="System.Data.OleDb" %>
	if (parseInt(Request.Form("id")))
		Session.Contents("studentID") = parseInt(Request.Form("id"));
	<h3>Course Registration Form</h3>
	<form method="post" action="ReviewSchedule.aspx">
		<strong>Student ID: <% Session.Contents("studentID") %></strong>
		<input type="submit" vlaue=" Review Current Schedule " />
	<form method="post" action="RegisterStudent.aspx">
		<strong>Select the course you would like to take:</strong>
		<br />
		<input type="radio" name="course" value="Introduction to ASP.NET" />Introduction to ASP.NET<br />
		<input type="radio" name="course" value="Introduction to JavaScript" />Introduction to JavaScript<br />
		<input type="radio" name="course" value="Intermediate ASP.NET" />Intermediate ASP.NET<br />
		<input type="radio" name="course" value="Intermediate JavaScript" />Intermediate JavaScript<br />
		<input type="radio" name="course" value="Advanced ASP.NET" />Advanced ASP.NET<br />
		<input type="radio" name="course" value="Advanced JavaScript" />Advanced JavaScript<br />
		<strong>Available Days and Times:</strong><br />
		<select name="time">
			<option selected="selected" value="Mondays and Wednesdays">Mondays and Wednesdays</option>
			<option value="Tuesdays and Thursdays">Tuesdays and Thursdays</option>
			<option value="Wednesdays and Fridays">Wednesdays and Fridays</option>
		<select name="time">
			<option selected="selected" value="9 a.m. - 11 a.m.">9 a.m. - 11 a.m.</option>
			<option value="1 p.m. - 3 p.m.">1 p.m. - 3 p.m.</option>
			<option value="6 p.m. - 8 p.m.">6 p.m. - 8 p.m.</option>
		<input type="submit" value=" Resgister " />
		<input type="reset" />
i get the following error:

A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/Mike/My Document...

<%@ language="JScript" %>

what do i need to do? Thanks for the help.

Last edited by shabbir; 19Sep2006 at 09:12.. Reason: Code formating.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
This line
Code: ASP
<%@ language="JScript" %>

should be like this

Code: ASP
<%@language="JScript" %>