Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   Asp.net (http://www.go4expert.com/forums/aspnet-t1425/)

mcgear 19Sep2006 07:24

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" "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">
        <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.

pradeep 3Oct2006 11:26

Re: Asp.net
This line
Code: ASP

<%@ language="JScript" %>

should be like this

Code: ASP

<%@language="JScript" %>

All times are GMT +5.5. The time now is 13:56.