| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 548 人关注过本帖
标题:怎么回事,都不能贴子呀????
只看楼主 加入收藏
35maoe
Rank: 1
等 级:新手上路
帖 子:341
专家分:0
注 册:2006-8-28
结帖率:100%
收藏
 问题点数:0 回复次数:5 
怎么回事,都不能贴子呀????
点发帖都没反应!!!!!!!!
搜索更多相关主题的帖子: 贴子 
2006-09-01 14:54
静夜思
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:济南的冬天
等 级:管理员
威 望:11
帖 子:8913
专家分:2567
注 册:2004-3-25
收藏
得分:0 
能说的具体一点吗?

畅所欲言
2006-09-01 14:55
35maoe
Rank: 1
等 级:新手上路
帖 子:341
专家分:0
注 册:2006-8-28
收藏
得分:0 

刚才点了半天都没有反应,,大家帮我看下,下面的有什么错误::

<%@Import Namespace=System.Data.ADO%>
<%@Import Namespace=System.Data%>
<Html>
<Form id="F1" Runat="Server">
请输入SQL 陈述: <Input Type="Text" Id="Text1" Runat="Server" >
<Button ID="Button1" Runat="Server" OnServerClick="Button1_Click">
执行
</Button>
</form>
<Span ID="Sp1" Runat="Server"/>
<Script Language="VB" Runat="Server">
Sub Button1_Click(sender As Object, E As EventArgs)
Dim cnA As ADOConnection=New ADOConnection
Dim cmA As ADOCommand=New ADOCommand
cnA.Provider="Microsoft.Jet.OLEDB.4.0"
cnA.DataSource="data/data.mdb"
cnA.UserID="Admin"
cnA.Open()
cmA.ActiveConnection=cnA
cmA.CommandType=CommandType.admin
cmA.CommandText=admin.Value
cmA.Execute()
Sp1.InnerText="这个叙述影响了" & cmA.RecordsAffected & "笔资料"
End Sub
</SCRIPT>
</Html>


2006-09-01 14:56
35maoe
Rank: 1
等 级:新手上路
帖 子:341
专家分:0
注 册:2006-8-28
收藏
得分:0 

这个贴子单个发就是发不了,上面产生的错误是:

Server Error in '/123456' 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: BC30002: Type 'ADOConnection' is not defined.

Source Error:

Line 11: <Script Language="VB" Runat="Server">
Line 12: Sub Button1_Click(sender As Object, E As EventArgs)
Line 13: Dim cnA As ADOConnection=New ADOConnection
Line 14: Dim cmA As ADOCommand=New ADOCommand
Line 15: cnA.Provider="Microsoft.Jet.OLEDB.4.0"

Source File: F:\123456\1.aspx Line: 13

Show Detailed Compiler Output:


C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\123456\ba638049\1d169be\assembly\dl2\84a815a9\0033c6bc_f68ec201\count1.0.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\123456\ba638049\1d169be\vquyeffm.dll" /debug- "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\123456\ba638049\1d169be\vquyeffm.0.vb"


Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\123456\ba638049\1d169be\vquyeffm.0.vb(20) : error BC30466: Namespace or type 'ADO' for the Imports 'System.Data.ADO' cannot be found.

Imports System.Data.ADO
~~~~~~~~~~~~~~~
F:\123456\1.aspx(13) : error BC30002: Type 'ADOConnection' is not defined.

Dim cnA As ADOConnection=New ADOConnection
~~~~~~~~~~~~~
F:\123456\1.aspx(14) : error BC30002: Type 'ADOCommand' is not defined.

Dim cmA As ADOCommand=New ADOCommand
~~~~~~~~~~
F:\123456\1.aspx(20) : error BC30456: 'admin' is not a member of 'System.Data.CommandType'.

cmA.CommandType=CommandType.admin
~~~~~~~~~~~~~~~~~
F:\123456\1.aspx(21) : error BC30451: Name 'admin' is not declared.

cmA.CommandText=admin.Value
~~~~~

Show Complete Compilation Source:


Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports Microsoft.VisualBasic
Line 15: Imports System
Line 16: Imports System.Collections
Line 17: Imports System.Collections.Specialized
Line 18: Imports System.Configuration
Line 19: Imports System.Data

复制还有好多,字符限制都删了!!!!^^^
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


2006-09-01 14:57
35maoe
Rank: 1
等 级:新手上路
帖 子:341
专家分:0
注 册:2006-8-28
收藏
得分:0 
可能是字符太多的原因,上面的求助贴单个发不出来,在这里回复提示字符太多,单个发没有提示,只是没反应!!

2006-09-01 14:59
小菜菜
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2006-8-31
收藏
得分:0 

2006-09-01 20:10
快速回复:怎么回事,都不能贴子呀????
数据加载中...
 
   



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

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