难道是视力问题
不要说我问题简单,没办法,初学,也不要说我偷懒,整整看可40分钟,硬是没看出错误,要不,你帮我看看,_______________________________________________________________________________
错误描述:Compiler Error Message: BC32017: Comma, ')', or a valid expression continuation expected.
________________________________________________________________________________
<%@ import namespace="system.data"%>
<%@ import namespace="system.data.oledb"%>
<script language="vb" runat="server">
sub enter_click(sender as object,e as eventargs)
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;datasource=" & server.mappath("..\wwwlink"))
dim cmd as new oledbcommand("insert into wwwlink(sitename,url,intro,grade) values('"& sitename.text &"','"&url.text&"','"&grade.text&"',cilt("&grade.selecteditem.text&"))",conn)
conn.open()
cmd.executenonquery()
conn.close()
message.text="添加成功"
end sub
</script>
<html>
<body>
<h2 align="center">插入记录</h2>
<table align="center">
<form runat="server">
<tr>
<td>网站名称<td><asp:textbox id="sitename" runat="server"/><tr>
<td>网站地址<td><asp:textbox id="url" runat="server"/><tr>
<td>网站简介<td><asp:textbox id="intro" textmode="multiline" cols="40" rows="4" runat="server"/><tr>
<td>网站评分<td><asp:dropdownlist id="grade" runat="server"/><tr>
<asp:listitem>1</asp:listitem>
<asp:listitem>2</asp:listitem>
<asp:listitem>3</asp:listitem>
<asp:listitem>4</asp:listitem>
<asp:listitem>5</asp:listitem>
</asp:dropdownlist><tr>
<td><td><asp:button id="enter" onclick="enter_click" text="提交" runat="server"/>
</table>
<asp:label id="message" align="center" runat="server"/>
</form>
</body>
</html>
________________________________________________________________