上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

2008年5月31日

c# GetVirutalDiretory Mapped PhyicalPath

摘要: using System.DirectoryServices;DiectoryEntry entry=new DirectoryEntry("IIS://Localhost/W3SVC");foreach(DirectoryEntry entrySite in entry.Children){ if("IIsWebServer"!=entrySite.SchemeClassName) continue; foreach(object vSite in entrySite.Properties["ServerBindings"]){ i 阅读全文

posted @ 2008-05-31 22:10 老代哥哥 阅读(205) 评论(0) 推荐(0) 编辑

2008年5月22日

ajaxTree 用Javascript 写的树形导航控件 jsTreeView

摘要: ----------------------目前仅支持IE ----------------IE 7 下试过,其余的尚未测试,和服务器端的联合也未测试。----------------------ajaxTree.htm---------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="h 阅读全文

posted @ 2008-05-22 20:53 老代哥哥 阅读(235) 评论(0) 推荐(0) 编辑

2008年5月19日

c# Socket 的应用

摘要: ---------------AjaxBaseSocket.cs-------------- public abstract class AjaxBaseSocket : IDisposable { protected Socket _socket; protected AjaxBaseSocket(IPEndPoint ipAddress) { _socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); } protected abstract void Close(); #re 阅读全文

posted @ 2008-05-19 21:14 老代哥哥 阅读(260) 评论(0) 推荐(0) 编辑

Ajax 登录控件(三)

摘要: -------------上一篇文章中的ajaxLogin.js中有两处BUGf function ajaxLogin(lgoinViewId,loginCtrlId,lgUserName,lgUserPwd,lgCmd,loginStatusId,loginStatusName,loginOutId,loginRemberMe){ this.loginViewId=lgoinViewId ; this.loginControlId=loginCtrlId ; this.loginUserName=lgUserName ; this.loginPassword=lgUserPwd ; thi. 阅读全文

posted @ 2008-05-19 16:45 老代哥哥 阅读(167) 评论(0) 推荐(0) 编辑

2008年5月16日

Ajax 登录控件(二)

摘要: 上一章的 Ajax登录控件有一个隐含的问题,就是不能在一个页面中同时放两个AjaxLogin。且 RemberMe一定要有。现在修改了这个问题。不过还是有点问题。如果发现问题请在后面跟帖。--------------------在IE7,Firefox2.0下测试过。(其余的没测试)---------------------------AjaxLogin.cs-----------源码如下using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using Syste 阅读全文

posted @ 2008-05-16 11:52 老代哥哥 阅读(184) 评论(0) 推荐(0) 编辑

2008年5月15日

Ajax 登陆控件

摘要: -------------------------------控件源码using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Lin 阅读全文

posted @ 2008-05-15 22:16 老代哥哥 阅读(154) 评论(0) 推荐(0) 编辑

2008年5月11日

asp.net 2.0 自定义 基于 Table 的 Profile Provide

摘要: 最近公司里要求统计用户注册的省市什么的乱七八糟的信息,asp.net 2.0自带的那个 ProfileProvider满足不了。从http://www.asp.net/downloads/sandbox/table-profile-provider-samples/下载了他的源码,觉的那个东西太啰嗦了,不过收益非浅。自己在此基础上又做了一些改进。源码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.Web.Profi 阅读全文

posted @ 2008-05-11 02:26 老代哥哥 阅读(161) 评论(0) 推荐(0) 编辑

2007年10月16日

Executing ASPX pages without a web server

摘要: Executing ASPX pages without a web server For the last couple of days, I?ve been writing about creating a standalone ASPX execution environment?a Windows Forms application that executes an ASP.NET page and displays the results in a Web Browser control.Because of the way the ASP libraries are written 阅读全文

posted @ 2007-10-16 18:46 老代哥哥 阅读(174) 评论(0) 推荐(0) 编辑

自定义轻量级的HTTP WebServer (WEB服务器)

摘要: 一直觉得网站www.studyez.com 处理静态文件不怎么快,就想能不能把这些静态文件单独放在另外一台服务器(StaticFileServer)上面。让主服务器只处理.aspx文件即可。StaticFileServer只负责输出静态文件,减轻主服务器的压力。远景的想法是把它用C/C++改写。不过,发现用C/C++哪是相当的麻烦,而且也没有必要。反正就是自己用用。先搭个架子先吧。对于以后的GET请求的分析,稍后在发上来。网上找的一些基上都是把接收到byte[]转化成字符串然后来分析,个人觉得这种做法效率不怎么好。不过目前也没想到什么好法子。特别对于POST请求的分析。下面涉及到异步回调《As 阅读全文

posted @ 2007-10-16 18:44 老代哥哥 阅读(299) 评论(0) 推荐(0) 编辑

2007年9月30日

数据库表间关系管理原理(2)

摘要: 这个是源码--------------------------基本数据接口-------------------namespace XPDataAccess{ /// <summary> /// 关键字接口 /// </summary> public interface IParmaryKey<P> { /// <summary> /// 关键字 /// </summary> P PrimaryKey { get ; } } /// <summary> /// 显示注册状态的参数 /// </summary> 阅读全文

posted @ 2007-09-30 20:58 老代哥哥 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

导航