| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2005 人关注过本帖
标题:End of statement expected.
只看楼主 加入收藏
tm_ma
Rank: 1
来 自:中南林
等 级:新手上路
帖 子:147
专家分:0
注 册:2007-3-20
收藏
 问题点数:0 回复次数:1 
End of statement expected.

我的程序如下,看了好多遍,看不处有什么错误啊.感谢各位不厌其烦的看完我的帖子,辛苦了.
____________________________________________________________________________
<%@ import namespace="systeml.data"%>
<%@ import namespace="system.data.oledb"%>
<script language="vb" runat="server">
sub page_load(sender as object,e as eventargs)
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("../wwwlink"))
dim cmd as new oledbcommand("select * from wwwlink",conn)
conn.open()
dim dr as new oledbdatareader=cmd.executereader()
mydatagrid.datasource=dr
mydatagrid.databind()
conn.close()
end sub
</script>
<html>
<body>
<form runat="server">
<asp:datagrid id="mydatagrid" headerstyle-backcolor="#FF0000" width="100%" runat="server"/>
</form>
</body>
</html>

______________________________________________________________________________
IE说:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30205: End of statement expected.

Source Error:

Line 6: dim cmd as new oledbcommand("select * from wwwlink",conn)
Line 7: conn.open()
Line 8: dim dr as new oledbdatareader=cmd.executereader()
Line 9: mydatagrid.datasource=dr
Line 10: mydatagrid.databind()

Source File: c:\inetpub\wwwroot\asp.net\chapter5\5-1.aspx Line: 8







[media=wmv,20,20,1]http://mv.ttmp3.com/605/BIGGER/BIGGER-16.rm[/media]

[此贴子已经被作者于2007-3-23 20:42:39编辑过]

搜索更多相关主题的帖子: statement expected End data 
2007-03-23 20:29
tm_ma
Rank: 1
来 自:中南林
等 级:新手上路
帖 子:147
专家分:0
注 册:2007-3-20
收藏
得分:0 
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("../wwwlink"))
忘记加后缀了........mdb

每个人都他妈的那么开心,为什么我就不行!
2007-03-24 09:02
快速回复:End of statement expected.
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024544 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved