为什么我不能通过 vbc /t:library /out:2.dll 2.vb 编译下面代码,代码文件名为: 2.vb Option Strict Off
Option Explicit On
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Collections.Specialized
Imports System.Configuration
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Web
Imports System.Web.Caching
Imports System.Web.Security
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Namespace ASP
Public Class _1s_aspx
Inherits System.Web.UI.Page
Implements System.Web.SessionState.IRequiresSessionState
Private Shared __autoHandlers As Integer
Private Shared __initialized As Boolean = false
Private Shared __fileDependencies As System.Collections.ArrayList
Sub Page_Load(sender As Object, e As EventArgs)
Dim Score As Byte = 70
If Score >= 60 Then Response.Write("及格!")
End Sub
Public Sub New()
MyBase.New
Dim dependencies As System.Collections.ArrayList
If (ASP._1s_aspx.__initialized = false) Then
dependencies = New System.Collections.ArrayList
ASP._1s_aspx.__fileDependencies = dependencies
ASP._1s_aspx.__initialized = true
End If
End Sub
Protected Overrides Property AutoHandlers As Integer
Get
Return ASP._1s_aspx.__autoHandlers
End Get
Set
ASP._1s_aspx.__autoHandlers = value
End Set
End Property
Protected ReadOnly Property ApplicationInstance As System.Web.HttpApplication
Get
Return CType(Me.Context.ApplicationInstance,System.Web.HttpApplication)
End Get
End Property
Public Overrides ReadOnly Property TemplateSourceDirectory As String
Get
Return "/netdll"
End Get
End Property
Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
End Sub
Protected Overrides Sub FrameworkInitialize()
Me.__BuildControlTree(Me)
Me.FileDependencies = ASP._1s_aspx.__fileDependencies
Me.EnableViewStateMac = true
Me.Request.ValidateInput
End Sub
Public Overrides Function GetTypeHashCode() As Integer
Return 5381
End Function
End Class
End Namespace各们高手帮帮小弟~~~~~~~~~~~~~~~~~~~~~~
Option Explicit On
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Collections.Specialized
Imports System.Configuration
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Web
Imports System.Web.Caching
Imports System.Web.Security
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Namespace ASP
Public Class _1s_aspx
Inherits System.Web.UI.Page
Implements System.Web.SessionState.IRequiresSessionState
Private Shared __autoHandlers As Integer
Private Shared __initialized As Boolean = false
Private Shared __fileDependencies As System.Collections.ArrayList
Sub Page_Load(sender As Object, e As EventArgs)
Dim Score As Byte = 70
If Score >= 60 Then Response.Write("及格!")
End Sub
Public Sub New()
MyBase.New
Dim dependencies As System.Collections.ArrayList
If (ASP._1s_aspx.__initialized = false) Then
dependencies = New System.Collections.ArrayList
ASP._1s_aspx.__fileDependencies = dependencies
ASP._1s_aspx.__initialized = true
End If
End Sub
Protected Overrides Property AutoHandlers As Integer
Get
Return ASP._1s_aspx.__autoHandlers
End Get
Set
ASP._1s_aspx.__autoHandlers = value
End Set
End Property
Protected ReadOnly Property ApplicationInstance As System.Web.HttpApplication
Get
Return CType(Me.Context.ApplicationInstance,System.Web.HttpApplication)
End Get
End Property
Public Overrides ReadOnly Property TemplateSourceDirectory As String
Get
Return "/netdll"
End Get
End Property
Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
End Sub
Protected Overrides Sub FrameworkInitialize()
Me.__BuildControlTree(Me)
Me.FileDependencies = ASP._1s_aspx.__fileDependencies
Me.EnableViewStateMac = true
Me.Request.ValidateInput
End Sub
Public Overrides Function GetTypeHashCode() As Integer
Return 5381
End Function
End Class
End Namespace各们高手帮帮小弟~~~~~~~~~~~~~~~~~~~~~~
解决方案 »
- asp.net数据库"xt"中拒绝了BACKUP DATABASE权限。BACKUP DATABASE正在异常终止。
- 求解决方案
- ASP.NET项目怎么在Linux中发布?
- 最近装了2008,打开一个2005网站,提示是否2.0转3.5?请问?
- 请教关于DropDownList的问题
- Nhibernate w无法识别配置节的问题
- 帮下忙啊,ajax中没法用response下载文件啊
- ASP.NET实现一个类似优酷,土豆在线播放视频的功能
- 高手进``如何才能利用asp.net2.0里的forms身份验证机制 用自己的SQL数据库呀
- 菜鸟问题:获得dataset里的其中一个记录
- 有没有办法不在Cacth IE缓存里不保留下来?
- asp.net treeview 问题(急)
-----------------------
vbc /t:library /out:2.dll /r:system.dll,system.web.dll 2.vb
-------------
你少了这样的东西,你imports哪些命名空间,就要run那几个命名空间,因为编译时要用到他们!
/r:system.dll,system.web.dll