您的位置:首页 > 其它

技术资料收藏

2007-08-28 17:55 387 查看


技术资料收藏

待在技术区2个月,升星了,正好下月起,工作忙了,没多少时间给各位解答了,以下是我技术收藏:(各种收藏都有),也许给你们会有帮住,谢谢!!!(本人还有一个疑问,就是对于做WEB控件的时候,有的属性嵌到三层或以上,就没有用了,例如:Iimageurl的对话框),算了,大家有好的也加呀!! http://blog.csdn.net/rickjelly2004 他们两的资料很全的,看看吧! http://blog.csdn.net/lihonggen0 http://blog.csdn.net/net_lover http://community.csdn.net/Expert/FAQ/List_Room_FAQ_Index.asp?bigclassid=52 http://xml.sz.luohuedu.net/xml/Content.asp http://www.developerfusion.com/utilities/convertvbtocsharp.aspx(比较的好c#到VB转换) http://www.webasp.net/

DataGrid能一次修改多行记录吗?如果不行,有其他方法实现吗? http://community.csdn.net/Expert/topic/3110/3110415.xml?temp=.4844477
DropDownList的问题,连动菜单的 http://community.csdn.net/Expert/topic/3093/3093649.xml?temp=.3064234
Datagrid 显示数据库中的二进制的图片,有点难度! http://community.csdn.net/Expert/topic/3112/3112270.xml?temp=.6695215
timer 不动作? http://community.csdn.net/Expert/topic/3114/3114792.xml?temp=.8809473
asp.net打印方案(最好是操作Excel),各位高手请进! http://community.csdn.net/Expert/topic/3114/3114640.xml?temp=.9786646
在asp.net上怎么弹出保存对话框? http://community.csdn.net/Expert/topic/2889/2889825.xml?temp=.1032984
如何给密码加密呢 http://community.csdn.net/Expert/topic/3128/3128859.xml?temp=.1032984
关于定时刷新客户端 http://community.csdn.net/Expert/topic/3128/3128881.xml?temp=.1032984
如何让datagrid分页的按钮"上一页下一页"使用图片 http://community.csdn.net/Expert/topic/3156/3156678.xml?temp=.5541651
如何获取当前的域名信息!? http://community.csdn.net/Expert/topic/3165/3165536.xml?temp=.705166
怎样根据客户中英文系统进入中英文页面? http://community.csdn.net/Expert/topic/3169/3169965.xml?temp=.3843653
怎么在文本框中屏蔽非数字的字符? http://community.csdn.net/Expert/topic/3196/3196298.xml?temp=.6959497
TextBox 的问题! http://community.csdn.net/Expert/topic/3209/3209270.xml?temp=.7582666
字符串处理的问题! http://community.csdn.net/Expert/topic/3208/3208879.xml?temp=.9452173
如果定时激活事件 http://community.csdn.net/Expert/topic/3205/3205773.xml?temp=.9452173
多行的TextBox如何限制输入长度?? http://community.csdn.net/Expert/topic/2807/2807286.xml?temp=.8840143
DataGrid中要加一个升序No,有没有什么好办法? http://community.csdn.net/Expert/topic/3207/3207909.xml?temp=.5894586
怎样屏蔽浏览器关闭按钮及ALT+F4 快捷键 http://community.csdn.net/Expert/topic/3209/3209562.xml?temp=.1971857
将数据插到dataset中,在一起更新 http://community.csdn.net/Expert/topic/3213/3213143.xml?temp=.3740045
请问如何将文件转成流存入数据库? http://community.csdn.net/Expert/topic/3212/3212280.xml?temp=.4363214
同一台机上,页面a中如何判断页面b是否打开? http://community.csdn.net/Expert/topic/3216/3216411.xml?temp=.2874567
怎样让hyperlink的文本不显示下划线?鼠标移到上面时变色、闪动、偏移的效果是怎么做出来的? http://community.csdn.net/Expert/topic/3215/3215382.xml?temp=.3212702
数据长度的问题?/ http://community.csdn.net/Expert/topic/3225/3225063.xml?temp=.3124811
高手求js下拉菜单! http://community.csdn.net/Expert/topic/3224/3224921.xml?temp=.3124811
datagrid里的模板列里有个DROPDOWNLIST,但是DROPDOWNLIST里面没有commandName属性,我如何实现DROPDOWNLIST选择改变后触发DATAGRID的ITEMCOMMAND事件呢? http://community.csdn.net/Expert/topic/3225/3225008.xml?temp=.5111505
怎么的到这个月有几号 http://community.csdn.net/Expert/topic/3226/3226622.xml?temp=.550152
请时间计算怎么做啊? http://community.csdn.net/Expert/topic/3226/3226715.xml?temp=.2172663
怎么web form中没有treeview控件? http://community.csdn.net/Expert/topic/3221/3221150.xml?temp=.4811823
一个关于如何读取时间里的年月日的问题(c#) http://community.csdn.net/Expert/topic/3232/3232623.xml?temp=.3999445
点“后退”时提示:警告: 网页已经过期…… http://community.csdn.net/Expert/topic/3232/3232996.xml?temp=.7035334
我想在xml里建一个像数据库中的“自动递增的”ID字段,要怎么处理呢? http://community.csdn.net/Expert/topic/3216/3216145.xml?temp=.241955
求给Datagrid排序的js代码 (不刷新页面) http://community.csdn.net/Expert/topic/3240/3240019.xml?temp=.8856317
6个小问题 http://community.csdn.net/Expert/topic/3244/3244153.xml?temp=.6121332
请问如何用asp.net如何获取网卡硬件地址? http://community.csdn.net/Expert/topic/3245/3245524.xml?temp=.8336908 求一个形如YYYY/MM/DD的日期判断正则表达式 http://community.csdn.net/Expert/topic/3245/3245783.xml?temp=.6137201
如何避免页面刷时产生的回送事件?? http://community.csdn.net/Expert/topic/3235/3235852.xml?temp=.2632563
如何让IE6.0右上角的“闭关”按钮失效? http://community.csdn.net/Expert/topic/3246/3246351.xml?temp=.9026605
求一个删掉字符串两边空格的正则表达式? http://community.csdn.net/Expert/topic/3264/3264840.xml?temp=.6270258
如何在改变datagrid行颜色的同时加上边框线效果? http://community.csdn.net/Expert/topic/2760/2760907.xml?temp=.7303583
能否启用两个以上的Forms身份验证? http://community.csdn.net/Expert/topic/3267/3267206.xml?temp=.5668451
谁知道在VB里怎样取得IP地址吗 http://community.csdn.net/Expert/topic/3278/3278237.xml?temp=.4232904
请教如何判断键盘的大小写状态、数字小键盘状态? http://community.csdn.net/Expert/topic/3275/3275147.xml?temp=.3133051
如何使图片上的图片变为手型? http://community.csdn.net/Expert/topic/3278/3278646.xml?temp=.2121088
现在得到当前的路径,如:http://community.csdn.net/Expert/PostNew.asp?room=5202
我用c#在后台怎么得到:PostNew.asp这个值?? http://community.csdn.net/Expert/topic/3278/3278849.xml?temp=.4395258
大侠,帮忙:ASP.net发送邮件的问题 http://community.csdn.net/Expert/topic/3268/3268007.xml?temp=.7686884
怎么解决url中有汉字,该也就无法正常显示的问题???在线等! http://community.csdn.net/Expert/topic/3285/3285910.xml?temp=.6879999 怎样才能彻底解决非法输入字符串的问题? http://community.csdn.net/Expert/topic/3302/3302116.xml?temp=.1588251
多文件上传带源代码 http://community.csdn.net/Expert/topic/3303/3303178.xml?temp=.3156855
192.168.0.2/bb/logout.aspx 无法注销 192.168.0.1/aa下的cookie http://community.csdn.net/Expert/topic/3215/3215703.xml?temp=.9740106
ASP.net中如何实现对输入错误的提示声音????(急) http://community.csdn.net/Expert/topic/2660/2660081.xml?temp=.0885126
有关您是本网站第几位访问者,各位是否有相关代码,能帮我解决么? http://community.csdn.net/Expert/topic/3321/3321164.xml?temp=.8671533
正则:密码包含字母,数字,下划线,可以,但包含*怎么验证?? http://community.csdn.net/Expert/topic/3213/3213002.xml?temp=.5960352
求asp.net好书!!! http://community.csdn.net/Expert/topic/3321/3321571.xml?temp=.545437
如何在vbscript中弹出文件保存的对话框,急~~~~~ http://community.csdn.net/Expert/topic/3322/3322899.xml?temp=.8863184
net高手必看。请问如何设置ie浏览器窗口最大化??? http://community.csdn.net/Expert/topic/3328/3328282.xml?temp=.9729883
如何不打开文件 直接出现下载保存提示框 http://community.csdn.net/Expert/topic/3332/3332144.xml?temp=.9399683
怎么把字符串"99999999.9"格式化成#99,999,999.9?? http://community.csdn.net/Expert/topic/3330/3330512.xml?temp=.3490259
请问如何将我字符串转为十六进制值呢 http://community.csdn.net/Expert/topic/3321/3321685.xml?temp=.1767237
字符串中的转义符号问题 http://community.csdn.net/Expert/topic/3336/3336185.xml?temp=.3242456
关于获取路径的简单问题!! http://community.csdn.net/Expert/topic/3332/3332981.xml?temp=.6509668
比较全面的html附加技巧: http://community.csdn.net/Expert/topic/3343/3343138.xml?temp=.4223749
有的专栏,对DataGrid介绍的比较的详细。 http://www.chinabs.net/aspnet/default.asp
字符串(含有汉字)转化为ascII16进制问题 http://community.csdn.net/Expert/topic/3342/3342635.xml?temp=.6246912
如何访问Datagrid的Footer Template中的控件? http://community.csdn.net/Expert/topic/3347/3347037.xml?temp=.8925287
点击datagrid中的一行,如何将该行中某一列的内容取出并显示在textbox中?? http://community.csdn.net/Expert/topic/3347/3347089.xml?temp=.7292597
DataGrid的行选择问题(用checkbox,RadioButton?) http://community.csdn.net/Expert/topic/3347/3347014.xml?temp=2.911013E-02
怎样向 DataGrid 中增加一行空行?? http://community.csdn.net/Expert/topic/3343/3343562.xml?temp=.0637781
关于网站在线用户在线检测的实现 http://community.csdn.net/Expert/topic/3346/3346866.xml?temp=.1771509
提供一些有用的东西![在线帮助文档和OutLook开发技术] http://community.csdn.net/Expert/topic/3340/3340561.xml?temp=.2760279
关于弹出模太窗口的缓存问题! http://community.csdn.net/Expert/topic/3328/3328627.xml?temp=.7910425
session共享! http://community.csdn.net/Expert/topic/3359/3359224.xml?temp=.2388269
附加码生产程序 http://community.csdn.net/Expert/topic/3364/3364665.xml?temp=.5620539
关于字符串格式化的问题在那里有详细介绍啊? http://community.csdn.net/Expert/topicview.asp?id=3347649
请问如何在数据邦定时将0.2格式化为20% http://community.csdn.net/Expert/topicview.asp?id=3359083
TAB第一次按时怎么会刷新..以后按TAB就不会了.这是为什么??? http://community.csdn.net/Expert/topicview.asp?id=3365632
刷新一下,然后就滚动到了最上面 http://community.csdn.net/Expert/topic/3366/3366852.xml?temp=.9356501
推荐两本asp.net的好书吧!! http://community.csdn.net/Expert/topic/3366/3366833.xml?temp=.8746302
让web页面部分内容只读 http://community.csdn.net/Expert/topic/3333/3333942.xml?temp=2.880496E-02
在.net中实现javascript的confirm功能 http://community.csdn.net/Expert/topic/2657/2657816.xml?temp=.6350061
正则匹配,匹配电话号码 http://community.csdn.net/Expert/topic/3368/3368479.xml?temp=.9452478
showModalDialog的问题 http://community.csdn.net/Expert/topic/3379/3379592.xml?temp=.9301721
表单提交用submit()和按钮有什么不同 http://community.csdn.net/Expert/topic/3380/3380323.xml?temp=.2949793
双击datagrid某个单元格时,只是这个单元格可编辑, http://community.csdn.net/Expert/topic/3399/3399546.xml?temp=.6452295
读取XM文件中的信息 http://community.csdn.net/Expert/topic/3407/3407705.xml?temp=.6566584
解决的动态生成控件并保存问题 http://community.csdn.net/Expert/topic/3370/3370620.xml?temp=.9285547
求两个日期之间差的函数吗? 如sql中的datadiff(month,d1,d2) http://community.csdn.net/Expert/topic/3383/3383127.xml?temp=.2753565
iframe编辑的高难度问题 http://community.csdn.net/Expert/topic/3341/3341021.xml?temp=.9449121
怎么使ASP.NET页面不被缓存? http://community.csdn.net/Expert/topic/3392/3392511.xml?temp=1.424807E-02
我也来贴几个:入门级别的
如何从数据库中读出前三行数据啊?急急 http://community.csdn.net/Expert/topic/3267/3267004.xml?temp=.2364466 如何在后台(*.cs文件中)设定Label服务器空件的ForeColor啊? http://community.csdn.net/Expert/topic/3355/3355537.xml?temp=.4596369 如何将图片在显示的时候等比例压缩啊? http://community.csdn.net/Expert/topic/3238/3238435.xml?temp=.5430719
使用MemoryStream/序列化等方式如何实现合并两个byte[]?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3289022
如何高效的去除字符串末尾的\0 ?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3283632
结构中如何包含定长数组?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3268114
如何为unsafe的void*指针开辟指定大小的内存空间?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3261164
.net和Win32类型转换问题,这个结构为什么是16字节长?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3359087
一个整形是4个字节,怎样用C#得到这四个字节?(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3321271
如何把类型当作一个参数传递(ffb) http://community.csdn.net/Expert/TopicView.asp?id=3300297
其他 http://community.csdn.net/Expert/TopicView.asp?id=3372469
我怎么写这个(datagrid中)linkbutton的click事件? http://community.csdn.net/Expert/topic/3474/3474030.xml?temp=.755932
读取XM文件中的信息 http://community.csdn.net/Expert/topic/3407/3407705.xml?temp=.3329279
JS中如何判断对象的属性值是否存在 http://community.csdn.net/Expert/topic/3415/3415179.xml?temp=.4078791
如何在后台文件动态地增加页面panel http://community.csdn.net/Expert/topic/3439/3439865.xml?temp=.8480646
不要标题栏,不要最大化最小化按钮,window.open的窗口always on top怎么弄?急用请助。在线等待! http://community.csdn.net/Expert/topic/3446/3446972.xml?temp=.3335382
动态生成服务器控件(Button)并使用其click事件 http://community.csdn.net/Expert/topic/3469/3469677.xml?temp=.7751886
相应回车事件 ,当按钮在单行编辑控件上回车时,回车事件被转译成tab事件 http://community.csdn.net/Expert/topic/3482/3482135.xml?temp=6.840152E-02
如何把hex颜色转换成rgb格式 http://community.csdn.net/Expert/topic/3493/3493270.xml?temp=.2042047
收集实用功能和经典的javaScript代码 http://community.csdn.net/Expert/topic/3494/3494338.xml?temp=.4798395
DropDownList无刷新联动菜单,要求用XMLTHHP实现 http://community.csdn.net/Expert/topic/3495/3495124.xml?temp=1.939029E-02
如何在DataGrid中根据不同字段来显示不同数据 http://community.csdn.net/Expert/topic/3487/3487067.xml?temp=.9123346
在用户注册成功后,如何在2秒内自动转向首页 http://community.csdn.net/Expert/topic/3502/3502576.xml?temp=.6382868
看了大家的分页存储过程,一句话:不算优秀,算是作为我对.net版块的一点支持吧!效率极高,只有五句话的分页存储过程 http://community.csdn.net/Expert/topic/3292/3292678.xml?temp=8.622378E-02
有什么办法可以获得浏览者的MAC地址 http://community.csdn.net/Expert/topic/3503/3503946.xml?temp=.4505426
用ASP.net从SQL表生成EXEL文件 http://community.csdn.net/Expert/topic/3503/3503719.xml?temp=.8920709
如何在后台修改 样式表 文件?急,在线等 http://community.csdn.net/Expert/topic/3504/3504277.xml?temp=.8561212
ASP.NET中引用realplay one,实现视频 http://community.csdn.net/Expert/topic/3524/3524807.xml?temp=.1698419
刚刚整理好-汉字转拼音缩写的函数(C#)
在CSDN上找了一下,没有找一完整的转换函数,特在前人基础上整理了一下,接下来的项目中有可能用到。感谢bugfree(八个飞飞)。

/// <summary>
/// 汉字转拼音缩写
/// Code By MuseStudio@hotmail.com
/// 2004-11-30
/// </summary>
/// <param name="str">要转换的汉字字符串</param>
/// <returns>拼音缩写</returns>
public string GetPYString(string str)
{
string tempStr = "";
foreach(char c in str)
{
if((int)c >= 33 && (int)c <=126)
{//字母和符号原样保留
tempStr += c.ToString();
}
else
{//累加拼音声母
tempStr += GetPYChar(c.ToString());
}
}
return tempStr;
}

/// <summary>
/// 取单个字符的拼音声母
/// Code By MuseStudio@hotmail.com
/// 2004-11-30
/// </summary>
/// <param name="c">要转换的单个汉字</param>
/// <returns>拼音声母</returns>
public string GetPYChar(string c)
{
byte[] array = new byte[2];
array = System.Text.Encoding.Default.GetBytes(c);
int i = (short)(array[0] - '\0') * 256 + ((short)(array[1] - '\0'));

if ( i < 0xB0A1) return "*";
if ( i < 0xB0C5) return "a";
if ( i < 0xB2C1) return "b";
if ( i < 0xB4EE) return "c";
if ( i < 0xB6EA) return "d";
if ( i < 0xB7A2) return "e";
if ( i < 0xB8C1) return "f";
if ( i < 0xB9FE) return "g";
if ( i < 0xBBF7) return "h";
if ( i < 0xBFA6) return "g";
if ( i < 0xC0AC) return "k";
if ( i < 0xC2E8) return "l";
if ( i < 0xC4C3) return "m";
if ( i < 0xC5B6) return "n";
if ( i < 0xC5BE) return "o";
if ( i < 0xC6DA) return "p";
if ( i < 0xC8BB) return "q";
if ( i < 0xC8F6) return "r";
if ( i < 0xCBFA) return "s";
if ( i < 0xCDDA) return "t";
if ( i < 0xCEF4) return "w";
if ( i < 0xD1B9) return "x";
if ( i < 0xD4D1) return "y";
if ( i < 0xD7FA) return "z";

return "*";
}

带滚动条的DATAGRID,刚做的,很简单,不过不大好看,望大家改改吧! http://blog.csdn.net/rickjelly2004/archive/2004/12/14/215508.aspx
我的收藏夹共享出来: http://www.h66.net/bookmark.htm
其实在这里也有: http://blog.csdn.net/johnsuna
征集最漂亮的验证码 http://community.csdn.net/Expert/topic/3451/3451248.xml?temp=.1554987
滚动条的样式 http://community.csdn.net/Expert/topic/3532/3532265.xml?temp=.4123957
求窗口最大化代码???不是满屏,而是相当于按了窗口右上角de最大化按钮那样的效果!!! http://community.csdn.net/Expert/topic/3556/3556037.xml?temp=.6214411
一个日历控件里动态添加一个linkbutton控件 http://community.csdn.net/Expert/topic/3558/3558436.xml?temp=.5620539
必须用Embed 标记怎么写?? http://community.csdn.net/Expert/topic/3560/3560382.xml?temp=.3838922
怎么用findControl把DataGrid里的HeaderTemplate中的DropDownList的selectedvalue取出来 http://community.csdn.net/Expert/topic/3584/3584069.xml?temp=.2555353
收藏的电子书籍,有几G之多,有需要的朋友就下载吧 http://community.csdn.net/Expert/topic/3587/3587151.xml?temp=.8816339
如何在C#(WEB页面)中实现弹出一个保存对话框???(有原代码甚好 http://community.csdn.net/Expert/topic/3593/3593381.xml?temp=.5247614
请问怎么获得文件夹的属性呢。。。???? http://community.csdn.net/Expert/topic/3633/3633796.xml?temp=.5394098
使用验证控件进行验证后,如何获得焦点 http://community.csdn.net/Expert/topic/3749/3749268.xml?temp=.7708246
AspNetForums中基于角色的权限控制 http://blog.joycode.com/dotey/archive/2005/02/24/44791.aspx
asp.net页面如何控制页面依据不同用户权限有不可见、可见、编辑 三种操作权限 http://community.csdn.net/Expert/topic/3436/3436974.xml?temp=.0139429
做过权限管理和想做权限管理的人进来(附我的思路) http://community.csdn.net/Expert/topic/3164/3164390.xml?temp=9.836978E-02
恳求权限分配的例子 http://community.csdn.net/Expert/topic/3207/3207546.xml?temp=.8236811
高分求用户权限管理代码(C#)或算法 http://community.csdn.net/Expert/topic/3321/3321018.xml?temp=.9790308
请问在SmartClient应用中,如何做到科学的身份验证和权限分配 http://community.csdn.net/Expert/topic/3289/3289151.xml?temp=.6897699
权限系统概要(收集,整理) http://community.csdn.net/Expert/topic/3243/3243737.xml?temp=.2451136
C/S结构的应用程序的用户权限分配 http://community.csdn.net/Expert/topic/3402/3402847.xml?temp=.5451319 http://www.codeproject.com/aspnet/rolesbasedauthentication.asp http://msdn.microsoft.com/library/en-us/dnpag/html/authpro.asp
浅谈ASP.NET的权限管理和用户验证 http://www.5d.cn/Tutorial/webdevelop/asp/20041221/1962.html
ASP.NET系统用户权限设计与实现 http://www.webjx.com/htmldata/2005-03-07/1110209021.html
[asp.net]扩展Forms验证 http://www.blueidea.com/tech/program/2004/2277.asp
设计由应用程序管理的授权 http://www.microsoft.com/china/MSDN/library/architecture/default.mspx
关于权限设计的探讨 http://ms.mblogger.cn/wayneliu/posts/3724.aspx
权限管理的设计和实现(含演示和原代码)(asp) http://blog.csdn.net/zhangking/archive/2004/09/02/92968.aspx
代码阅读总结之ASP.NET StartKit TimeTracker(角色权限)(code) http://www.cnblogs.com/aierong/archive/2004/12/21/79966.html
Asp.Net基于forms的验证机制,记录一下... (基础) http://www.cnblogs.com/kwklover/archive/2004/06/29/19455.aspx
用户认证管理设计方案[原创]选择自 ForEverKissing 的 Blog http://dev.csdn.net/develop/article/68/68125.shtm
经过一天的整理,总算出了个初稿,没及时润色,而且还有些图cuteeditor不支持,我将尽快不上,大家上去批批吧,虚心接受大家的建议,将很快推出第二个版本,征得公司同意后会考虑开源
http://www.cnblogs.com/hedonister/articles/138914.html
推荐:chyich () 兄的项目总结系列

项目总结(一): http://expert.csdn.net/Expert/topic/1526/1526312.xml?temp=.4324762 (这篇文章主要说明了asp.net中页面的执行(处理)过程和web 窗体页处理,进行ASP.NET程序开发的应该要深入了解好ASP.NET的“Web 窗体页”(ms-help: //MS.VSCC/MS.MSDNVS.2052/Vbcon/html/vboriintrotowebforms.htm),否则会处于一种懵懂的 状态,知道实现而不知原理过程)

项目总结(二)datagrid基础篇:(已被推荐入精华贴) http://expert.csdn.net/Expert/topic/1544/1544487.xml?temp=.4587061
项目总结(三)饼图报表源码篇: http://expert.csdn.net/Expert/topic/1553/1553351.xml?temp=.8919794 (这篇文章主要介绍了.net里面提供的强大画图功能)

项目总结(四) datagrid自定义分页(存储过程)篇: http://expert.csdn.net/Expert/topic/1586/1586488.xml?temp=.1567652 (推荐意见:主要阐述了为什么datagrid自定义分页功能的优劣势,同时阐述了datagrid的自定义分页的原理和一个利用存储过程分页的示例)

关于工作、职业和事业的思考 http://expert.csdn.net/Expert/topic/1570/1570784.xml?temp=.7626306
怎样培养一个新手?怎样能帮助他们尽快融进已有的团队? http://expert.csdn.net/Expert/topic/1446/1446559.xml?temp=2.088565E-02
“怎么客观的认识和处理自己和公司的关系?” http://expert.csdn.net/Expert/topic/1580/1580519.xml?temp=5.732363E-02
抛砖引玉:是谁害了NC? http://expert.csdn.net/Expert/topic/1622/1622262.xml?temp=.8544123
标题:C#版块精华贴推荐大行动,并推荐给斑竹以丰富精华贴!!!
地址:http://expert.csdn.net/Expert/topic/1662/1662253.xml?temp=.3671381

标题:C#版块FAQ贴推荐大行动,并推荐给斑竹以丰富精华贴!!!
地址:http://expert.csdn.net/Expert/topic/1662/1662267.xml?temp=.3039057

标题:ASP.NET FAQS推荐大行动,并推荐给斑竹以丰富FAQ!!!
地址:http://expert.csdn.net/Expert/topic/1662/1662093.xml?temp=.3629114

Asp.NET中的DBGrid如何能让每行增加一个CheckBox,以便让用户选择其中的多行?
http://expert.csdn.net/Expert/topic/1659/1659414.xml?temp=.4901087
我昨天看了下“DataGrid问题集锦”,对于Datagrid的列标题处理,我有这么一种处理,感觉还是不错的,先发在下面跟大家一块分享。
—————————————————————————————————————
一.Datagrid的列标题处理:

1.采用HashTable进行处理,下面的代码很简单,我就不做注释了。
using System;
using System.Collections;

namespace FieldConvert
{
/// <summary>
/// FieldConvert 的摘要说明:
///
/// 数据库表的中英文字段转换。
/// 备注:若不希望用户看到的信息,需将被转换后的中文包标识成含"Hidden_"的字符串
/// </summary>
public class CFieldConvert:Exception
{

private static Hashtable convertCodes = new Hashtable();
private static bool isInit = false;

private static void initErrorCodes()
{

convertCodes.Add("UserName","用户");
convertCodes.Add("UserPassword","密码");

convertCodes.Add("F_System","系统错误!");

}
public string getNiceErrorMessage(string FieldName)
{
if (!isInit)
{
//初始化错误代码
initErrorCodes();
isInit = true;
}

string temp = convertCodes[FieldName].ToString();
if (temp.Length < 1)
{
//发生系统错误
return convertCodes["F_System"].ToString();
}
else
{
return temp;
}
}
}
}

另附一般的常用处理:

2.使用SQL语句
如SELECT UserName as 用户名,Password as 密码 FROM TbUsers

3.使用HeaderText

<ASP:DataGrid id="MyDataGrid" runat="server"
PagerStyle-Visible="false"
AllowPaging="True"
PageSize="20"
OnPageIndexChanged="MyDataGrid_Page"
Width="700"
BackColor="#99cc33"
BorderColor="#FFFFFF"
ShowFooter="false"
CellPadding=3
CellSpacing="0"
Font-Name="Verdana"
Font-Size="8pt"
HeaderStyle-BackColor="#006800"
HeaderStyle-ForeColor="#FFFFFF"
EnableViewState="false"
AutoGenerateColumns="false"
>

<Columns>
<asp:HyperLinkColumn HeaderText="登陆名" SortExpression="LoginName" DataTextField="LoginName" ItemStyle-Wrap="false"
DataNavigateUrlField="LoginName" DataNavigateUrlFormatString="UserDetail.aspx?LoginName={0}" Target="_self"/>
<asp:BoundColumn HeaderText="密码" SortExpression="Password" DataField="Password"/>
<asp:BoundColumn HeaderText="员工姓名" SortExpression="UserName" DataField="UserName"/>
<asp:BoundColumn HeaderText="角色" SortExpression="role" DataField="role"/>
<asp:BoundColumn HeaderText="所属区域" SortExpression="AreaCode" DataField="AreaCode"/>
<asp:BoundColumn HeaderText="电话" SortExpression="Tel" DataField="Tel"/>
</Columns>

</ASP:DataGrid>

—————————————————————————————————————

推荐精华贴的标准,不知道哪位有什么好的标准不妨贴上来。我先列举部分意见:
1.非常切实解决了某一技术疑难或提高了效率的;
2.....大家来写吧,:)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: