随笔分类 -  WebForm(C#)

WebForm(C#)
net中一些所封装的类
摘要:之类的类,太多了//=========加密=================public static string Encrypto(string Source) { System.Security.Cryptography.HashAlgorithm HashCryptoService; HashCryptoService = new System.Security.Cryptography... 阅读全文
posted @ 2007-05-31 17:30 kingeric 阅读(365) 评论(0) 推荐(0)
最近碰到的一个棘手问题
摘要:最近碰到的一个棘手问题在添加或编辑页面中存在一个DropDownList控件控件的数据都是从数据库中进行绑定的,如下:private void GetTypes(System.Web.UI.WebControls.DropDownList Control) { DataSet ds = myConnSQL.GetDataSet("select * from Job_Type","TableN... 阅读全文
posted @ 2007-04-30 01:14 kingeric 阅读(438) 评论(2) 推荐(0)
模拟动网当前位置下拉菜单
摘要:模拟动网当前位置下拉菜单如图:代码如下:public string GetBoardDropDownList(int paraParentID) { string BoardText = ""; return BoardText; } public string BoardRec(int paraParentID) { string BoardText= ""; DataS... 阅读全文
posted @ 2007-01-10 12:09 kingeric 阅读(436) 评论(0) 推荐(0)
根据html页面模板动态生成html页面(c#类)
摘要:一直以为动态生成静态页面不好做,昨天在网上找了下,我晕,其实很简单,思路大概是这样的,1:建立一个html页面模板,在这个页面中把你想要动态显示的地方用特殊的字符串表示(如$htmlstrstr$);2:在程序中用将这个html页面读到一个字符串变量如str;3:用字符串的resplace方法将在第一步中特殊字符替换成你想要的内容;4保存;OK,so easy,今天就用C#写了一个这样的类,用来处... 阅读全文
posted @ 2007-01-01 13:01 kingeric 阅读(929) 评论(0) 推荐(0)