05 2008 档案

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 老代哥哥

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 老代哥哥

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 老代哥哥

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 老代哥哥

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 老代哥哥

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 老代哥哥

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 老代哥哥

导航