首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

异常类型:Microsoft JScript 编译异常 (0x800A03EC) 缺少 ';'

2012-03-03 
错误类型:Microsoft JScript 编译错误 (0x800A03EC)缺少 错误类型:MicrosoftJScript编译错误(0x800A03E

错误类型:Microsoft JScript 编译错误 (0x800A03EC) 缺少 ';'
错误类型:
Microsoft   JScript   编译错误   (0x800A03EC)
缺少   '; '
/asp/Output.asp,   line   13,   column   15
Response.Write   "姓名不能为空! ";
--------------^


浏览器类型:
Mozilla/4.0   (compatible;   MSIE   6.0;   Windows   NT   5.1;   SV1;   InfoPath.2;   FDM;   .NET   CLR   2.0.50727)  

网页:
POST   83   ???   /asp/Output.asp

POST   Data:
Name=tercel&Sex=%C4%D0&Age=21&Degree=%B8%DF%D6%D0&Strong=32434&submit1=%CC%E1%BD%BB  


以下是我的asp程序,不知道怎么总是报这个错,请高手解答:

<%@   language= "javascript "   %>
<%
var   Name,   Sex,   Age,   Degree,   Speciality,   Strong
Name=Request.Form( "Name ")
Sex=Request.Form( "Sex ")
Age=Request.Form( "Age ")
Degree=Request.Form( "Degree ")
Speciality=Request.Form( "Speciality ")
Strong=Request.Form( "Strong ")

if   (Name== " ")
{
      Response.Write   "姓名不能为空! ";
      Response.End;
}

if   (Sex== " ")
{
      Response.Write   "必须选择性别! ";
      Response.End;
}

if   (Age== " ")
{
      Response.Write   "年龄不能为空! ";
      Response.End;
}

if   (Degree== " ")
{
      Response.Write   "必须选择学历! ";
      Response.End;
}

if   (Speciality== " ")
{
      Response.Write   "专业不能为空! ";
      Response.End;
}

if   (Strong== " ")
{
      Strong= "无 ";
}
%>

<html>
    <head>
    </head>
    <body>
        <form   action= "Input.asp ">
            <table   border= "0 ">
                <tr>
                <td   height= "20 "> </td>
                </tr>
                <tr>
                    <td   align= "center "> 个人简历信息 </td>
                </tr>
                <tr>
                    <td>
                        <table   border= "1 ">
                            <tr>
                                <td   align= "right "> 姓名: </td>
                                <td>


                                    <%
                                        Response.Write   Name;  
                                    %>
                                </td>
                            </tr>
                            <tr>
                                <td   align= "right "> 性别: </td>
                                <td>
                                    <%
                                        Response.Write   Sex;  
                                    %>
                                </td>
                            </tr>
                            <tr>
                                <td   align= "right "> 年龄: </td>
                                <td>
                                    <%
                                        Response.Write   Age;  
                                    %>
                                </td>
                            </tr>
                            <tr>
                                <td   align= "right "> 学历: </td>
                                <td>
                                    <%
                                        Response.Write   Degree;  


                                    %>
                                </td>
                            </tr>
                            <tr>
                                <td   align= "right "> 专业: </td>
                                <td>
                                    <%
                                        Response.Write   Speciality;  
                                    %>
                                </td>
                            </tr>
                            <tr>
                                <td   align= "right "> 特长: </td>
                                <td>
                                    <%
                                        Response.Write   Strong;  
                                    %>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input   type= "submit "   value= "重新填写 "> &nbsp;
                        <input   type= "button "   value= "程序结束 "   onclick= "window.close(); ">
                    </td>
                </tr>


            </table>
        </form>
    </body>
</html>

[解决办法]
Response.Write( "年龄不能为空! ");

什么时候你见过javascript调用方法时参数可以不用括号的么

热点排行