教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> .NET类 >> ASP.NET >> Calling a Button Event from a Compiled DLL RSS订阅
Calling a Button Event from a Compiled DLL
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
'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



来源:upschool.com.cn
作者:
关键字:Calling,Button,Event,from,Compiled,DLL
发表日期:2005-12-23

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:datagrid怎么设置分页?   下一篇:css设定表格宽度


2009-1-9 19:49:55
本文的相类似文章
  • DLL 應用 - 設計可抽換的模組
  • 用VB创建开始菜单快捷方式(无需其他DLL)
  • 动态嵌入式DLL木马发现与清除
  • 认清dllhost.exe病毒的本来面目
  • 使用event api诊断数据导入imp性能
  • 利用errorstack event解决问题
  • 9i中一个特殊等待事件--null event
  • 用GET_DDL函数来拷贝DLL句法
  • [Learn Oracle from OTN]数据块预读技术
  • Linux From Scratch 的一些心得
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com