国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 栾川县| 德州市| 红安县| 加查县| 梨树县| 金阳县| 青河县| 和静县| 禹城市| 黄冈市| 遵义市| 乌苏市| 肇州县| 东光县| 如皋市| 杂多县| 乌拉特前旗| 济源市| 贡觉县| 独山县| 铜梁县| 舞阳县| 文化| 库车县| 壤塘县| 安徽省| 谢通门县| 宜春市| 利辛县| 茶陵县| 信宜市| 额敏县| 区。| 蓬溪县| 郓城县| 中卫市| 葵青区| 达日县| 平度市| 乐昌市| 石嘴山市|