国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

Calling a Button Event from a Compiled DLL

2024-07-21 02:16:38
字體:
供稿:網(wǎng)友
'the inherits line calls the namespace.class inside the dll
<%@ page language="vb" inherits="aspfrees.mycodebehind" %>

<html>
<head>
<title>calling a button event from a compiled dll</title>
</head>
<body>
   <form runat="server">
    <asp:button id="btnwhatsnew" text="add whats new" onclick="b1_click" runat="server" />
</form>
</body>
</html>

  
source vb file that gets compiled  
cpdll.vb file



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

namespace aspfrees


    public class mycodebehind : inherits page

        public sub b1_click(sender as object , e as system.eventargs)
             dim value1 as string = "wow the button was clicked!"
             response.write(value1)
        end sub
  

    end class
end namespace


  
batch file to compile the dll(this will place the dll in the /bin directory)

this creates an aspfree.dll into the bin directory!
mk.bat file to compile the .vb file

vbc /t:library /out:../bin/aspfreebuttoneventdll.dll /r:system.web.dll /r:system.dll
/r:system.data.dll cpdll.vb

中國最大的web開發(fā)資源網(wǎng)站及技術(shù)社區(qū),
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 岢岚县| 陇南市| 青河县| 洛阳市| 祥云县| 沂源县| 宁城县| 富顺县| 遵化市| 于都县| 台北县| 武平县| 长沙县| 民县| 海安县| 抚州市| 彭泽县| 桦川县| 永靖县| 桑植县| 平和县| 巍山| 修武县| 通榆县| 樟树市| 南丰县| 衡南县| 盐津县| 遵化市| 汾西县| 施甸县| 卢龙县| 专栏| 同心县| 塔城市| 潞西市| 深水埗区| 灌阳县| 定兴县| 巢湖市| 宁乡县|