最近在因为在学习remoting,纯粹只是了解一下,发现remoting确实是好东西。我们通常有三种方式来使用remoting,一种是第一种:publishing a public object公开的对象创建在本地第二种:remote creation of a public object (sao)对象创建在客户端请求中第三种:remote creation of a private object (cao)对象创建在host上,客户端引用服务器上的对象目次我也没有很好理解这三种的本质区别在哪里。而这三种方式的remoting创建方式也不相同。第一种方式host:channelservices.registerchannel (new tcpchannel(1500));ctransfer trans = new ctransfer();remotingservices.marshal ...
很经常使用到的一个功能,但在在网上却一直没有找到相关的解决方法,今天借着项目应用到的机会写了两个将绝对路径转换为虚拟路径封装好的方法将web站点下的绝对路径转换为相对于指定页面的虚拟路径/**//// <summary>/// 将web站点下的绝对路径转换为相对于指定页面的虚拟路径/// </summary>/// <param name="page">当前页面指针,一般为this</param>/// <param name="specifiedpath">绝对路径</param>/// <returns>虚拟路径, 型如: ../../</returns>public static string convertspecifiedpathtorelativepathforpage(page p...
在开发asp.net应用程序过程中编写script是件很烦人的事情,其实我们可以把常用的script装成相应的.net组件在服务端调用,这样可以大大简化script的编写还提高的script的重用.以下是常用的打开模式窗体并获取返回值的类调用,实际上可以给设置多个参数传入和不同控件获取不同返回值的结果.定义打开窗体并设置返回值脚本类.hfsoft.web.scripts.showmodaldialog dialog=new hfsoft.web.scripts.showmodaldialog( xxx.units.config.webboot+"appunit/windowopendialog.aspx", frmfailurelogsearch.pageuri());dialog.height=400;dialog.width=600;dialog.returnelements.add(...
由于.net自带的分页功能极其死板,自定义性不强不能满足需求俺花了一个多星期的时间 写成的一个.net分页控件特性:1、支持datagrid,datalist等分种数据显示控件,理论上只要有datasource的控件都可以2、支持url方式分页,url分页的每一页都可以被搜索引擎搜到,并且支持url重写3、控件样式可自定义4、封装完全,使用过程序只需写一行代码 1 /****************************************************************** 2 ** 文件名:pager.cs 3 ** 创建人:杨响武 4 ** 日 期:2005年7月27日 5 ** 修改人: 6 ** 日 期: 7 ** 描 述: 8 ** 9 **-10 ******************************************************...
后台文件:1using system;2using system.data;3using system.configuration;4using system.collections;5using system.drawing;6using system.web;7using system.web.security;8using system.web.ui;9using system.web.ui.webcontrols;10using system.web.ui.webcontrols.webparts;11using system.web.ui.htmlcontrols;1213public partial class default2 : system.web.ui.page14{15 protected void page_load(object sender, eventargs...
javascript是一门非常强大的基于对象(object based)的语言,但是对面向对象(object oriented)的支持还存在一些不足,同时javascript内建的类库也比较简单,甚至缺乏一切很常用的功能。asp.net atlas在运行时扩展了javascript,大大增强了它的面向对象支持能力,并扩展了一些开发时常用的操作。 我参考了一下atlas.js文件,总结出atlas对javascript有如下扩展。某些地方有所遗漏或错误,还请各位包涵并指正。 string对象的扩展 1、string string.ltrim() 移除原string开头部分所有的空格,并返回一个新string对象。 2、string string.rtrim() 移除原string结尾部分所有的空格,并返回一个新string对象。 3、string string.trim() 移...
<script language="vbs" src="spellcode.vbs"></script>'获取客户简称的拼音缩写 function getpy() dim str dim i str=document.all.txtcontactname.value dim ret for i=1 to len(str) ret=ret&getpychar(mid(str,i,1)) next document.all.txtspellcode.value=ret end function getpychar=char end if end function spellcode.vbs'获取汉字拼音第一字母function getpychar(char) dim tmp tmp=65536+asc(char) if(tmp>=45217 and...
using system;using system.io;using system.web;namespace sec{ /**//// <summary> /// 对文件和文件夹的操作类 /// </summary> public class filecontrol { public filecontrol() { } /**//// <summary> /// 在根目录下创建文件夹 /// </summary> /// <param name="folderpath">要创建的文件路径</param> public void createfolder(string folderpathname) { if(folderpathname.trim().length>0) { try { string creat...
做web开发也有几年了。自己在不同的公司有不同的认识。最近做blog项目。自己认识到了模板类在web开发中的作用。自己晚上在家。总想可以做一个专门的为asp.ne开发而设计的模板类。于是就写了这个模板类。下载地址点这把下载下来的 500sea.txt 文件改名为 templet.rar 文件打开就可以如果打开http://img.club.163.com/images/user/other/500sea没有提示 500sea.txt文件下载。那就用网络快车等东西下这个地址把下来的500sea.txt文件 改为 *.rar 文件就好 下面是里面的一个说明文件////介绍:此模板类是为三层架构web站点开发而编写的。stringtempletreplet.dll组件内包含模板类。stringtempletreplet命名空间内的模板类可以使用在ui层,也可以使用在逻辑层。***********...
作者:dflying chen (http://dflying.cnblogs.com/)javascript是一门非常强大的基于对象(object based)的语言,但是对面向对象(object oriented)的支持还存在一些不足,同时javascript内建的类库也比较简单,甚至缺乏一切很常用的功能。asp.net atlas在运行时扩展了javascript,大大增强了它的面向对象支持能力,并扩展了一些开发时常用的操作。我参考了一下atlas.js文件,总结出atlas对javascript有如下扩展。某些地方有所遗漏或错误,还请各位包涵并指正。string对象的扩展string string.ltrim()移除原string开头部分所有的空格,并返回一个新string对象。 string string.rtrim()移除原string结尾部分所有的空格,并返回一个新strin...
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器