当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: The following walkthrough demons
 

 

    摘要:解决“不允许类型 system.delegateserializationholder 和从中派生的类型(例如 system.delegateserializationholder)在此安全级别上被反序列化”错误的办法。在.net framework 1.1中安全级别默认是low的,所以不能被反序列化。以下代码是是一个聊天程序,在修改了配置文件后就可以访问了。远程处理程序:......
 ·在asp.net 中实现单点登录     »显示摘要«
    摘要:在asp.net 中实现单点登录由于某些原因,在我们的应用中会遇到一个用户只能在一个地方登录的情况,也就是我们通常所说的单点登录。在asp.net中实现单点登录其实很简单,下面就把主要的方法和全部代码进行分析。实现思路利用cache的功能,我们把用户的登录信息保存在cache中,并设置过期时间为session失效的时间,因此,一旦session失效,我们的cache也过期;而cache对所有的用户......


Using a Custom Action to Create a Database During Installation

the following walkthrough demonstrates the use of a custom action and the customactiondata property to create a database and database table during installation.

on the file menu, point to new, and then choose project. in the new project dialog box, select visual basic projects in the project type pane, and then choose class library in the templates pane. in the name box, type dbcustomaction. click ok to close the dialog box. on the project menu, choose add new item. in the add new item dialog box, choose installer class. in the name box, type dbcustomaction. click ok to close the dialog box. to create a data connection object 【程序编程相关:DataGrid模板列应用——在Data

note   this walkthrough requires sql server on the computer where you will deploy the application.to create an installer class 【推荐阅读:在数据库中开始一个事务。

in server explorer, select data connections. right-click and choose add connection. in the data link properties dialog box, do the following: enter the server name. select use windows nt integrated security. in the database box, type master. click ok to close the dialog box. drag the new connection and drop it on the dbcustomaction.vb designer to create a sqlconnection1 object. to create a text file that contains a sql statement to create a database


...   下一页
    摘要:五、 基础知识:使用attribute来订制属性窗口的显示 控制显示的机制和用idl定义的组件是一样的,不过是增加了元数据特性。控制显示使用最普遍的特性是browsableattribute。默认状态下,属性窗口显示对象中定义的所有的公开的、可读的(即public、有get或者set方法的)属性,并且把他们放在“杂项(misc)”类别中。下面是一个简单的组件例子: ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE