Asp.net

Discussion in 'ASP.NET' started by mcgear, Sep 19, 2006.

  1. mcgear

    mcgear New Member

    Joined:
    Sep 19, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hey all,
    Pretty new at this and can't figure out why this simple code won't execute:

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head>
    	<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 }
    	</style>
    	<%@ language="JScript" %>
    	<@ Import namespace="System.Data.OleDb" %>
    	<%
    	if (parseInt(Request.Form("id")))
    		Session.Contents("studentID") = parseInt(Request.Form("id"));
    	%>
    </head>
    <body>
    	<h3>Course Registration Form</h3>
    	<form method="post" action="ReviewSchedule.aspx">
    		<p>
    		<strong>Student ID: <% Session.Contents("studentID") %></strong>
    		<input type="submit" vlaue=" Review Current Schedule " />
    		</p>
    	</form>
    	<form method="post" action="RegisterStudent.aspx">
    		<p>
    		<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 />
    		</p>
    		<p>
    		<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>
    		<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>
    		</select>
    		</p>
    		<p>
    		<input type="submit" value=" Resgister " />
    		<input type="reset" />
    		</p>
    	</form>
    </body>
    </html>
    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 a moderator: Sep 19, 2006
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    This line
    Code:
      <%@ language="JScript" %>
    should be like this

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice