最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
召集Button Event
时间:2022-06-30 09:49:07 编辑:袖梨 来源:一聚教程网
这里例子将说明如何利用Code-Behind forms召集Button Event
<%@ Page Inherits="MyCodeBehind" Src="cp.vb" Debug="True" Language="VB" %>
New Page 1
cp.vb的代码如下
我将他封装成类
Option Strict Off
Imports System
Imports System.DateTime
Imports System.Globalization
Imports System.Data
Imports System.Data.SQL
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class MyCodeBehind : Inherits Page
Public Sub B1_Click(Sender As Object, E As EventArgs)
response.write("B1 was click")
End Sub
Public Sub B2_Click(Sender As Object, E As EventArgs)
response.write("B2 was click")
End Sub
Public Sub B3_Click(Sender As Object, E As EventArgs)
response.write("B3 was click")
End Sub
End Class
<%@ Page Inherits="MyCodeBehind" Src="cp.vb" Debug="True" Language="VB" %>
cp.vb的代码如下
我将他封装成类
Option Strict Off
Imports System
Imports System.DateTime
Imports System.Globalization
Imports System.Data
Imports System.Data.SQL
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class MyCodeBehind : Inherits Page
Public Sub B1_Click(Sender As Object, E As EventArgs)
response.write("B1 was click")
End Sub
Public Sub B2_Click(Sender As Object, E As EventArgs)
response.write("B2 was click")
End Sub
Public Sub B3_Click(Sender As Object, E As EventArgs)
response.write("B3 was click")
End Sub
End Class
相关文章
- 光遇12.23每日任务怎么做 光遇12月23日每日任务做法攻略 12-23
- 光遇12.23大蜡烛在哪里 光遇12月23日大蜡烛位置攻略 12-23
- 光遇12.23免费魔法有什么 光遇12月23日免费魔法收集攻略 12-23
- 《流放之路2》寻找熔炉任务攻略分享 12-23
- 《流放之路2》德雷文打法技巧分享 12-23
- 《流放之路2》永恒裁判者德雷文具体位置介绍 12-23