Public MustInherit Class Loginform Inherits System.Web.UI.UserControl Protected WithEvents User As System.Web.UI.WebControls.TextBox Protected WithEvents Pass As System.Web.UI.WebControls.TextBox Protected WithEvents Button1 As System.Web.UI.WebControls.Button #Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。 <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: 此方法调用是 Web 窗体设计器所必需的 '不要使用代码编辑器修改它。 InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '在此处放置初始化页的用户代码 End Sub Public Property UserId() As [String] Get Return User.Text End Get Set(ByVal Value As [String]) User.Text = Value End Set End Property Public Property Password() As [String] Get Return Pass.Text End Get Set(ByVal Value As [String]) Pass.Text = Value End Set End Property End Class