内容列表页
 
2009-3-1 20:12:31
3.6 连 接 池
与微软以前的数据访问技术类似,ADO.NET包括对连接池的内置支持。
3.6.1 连接句柄和物理连接
如果正在使用Visual Studio,可以使用Visual Studio调试工具检查对象的一些内部私有属性。例如,编写一些代码来打开一个SqlConnection,并在调用Open方法的地方设置断点。右击代码中的对象,并选择【添加监视..
 
2009-3-1 19:35:10
//1.引入命名空间
//2.创建别名
//3.强制资源清理
 
2009-2-26 10:04:49
什么是ViewState?
对于ViewState,我们有许多的误解。Viewstate不保存控件,而是去保存form中对应ID控件的值,特别是那些由于他们没有和form一起post 而在页面回传时会丢失的控件的值。viewstate一般不要用来保存session或在页面间传输数据。在页面回传后,viewstate不能用来动态地创建页面的控件。他在页面回传之后不回复..
 
2008-12-18 0:11:54
如果您研究过这个问题,那么,你一定会比较郁闷,现在网上流行的那个,国产的,里面有点问题,反正我一从昨天研究到现在 2008年12月17日 23时59分10秒,才搞明白是怎么回事,你说我们这些人容易吗!如果只是为了完成任务,我用ASP就OK了,为什么还要用ASP.net,如果我们用.net时还用ASP的思路也得了,为什么还要研究ASP.net提..
 
2008-11-29 13:34:53
/// <summary>
/// Class for encoding and decoding a string to QuotedPrintable
/// RFC 1521 http://www.ietf.org/rfc/rfc1521.txt
/// RFC 2045 http://www.ietf.org/rfc/rfc2045.txt
/// Date: 2006-03-23
/// Author: Kevin Spaun
/// Company: SPAUN Informationstechnik GmbH - http://www.spaun-it.com/
/// Feedback: kspaun@spaun-it.de
/// License: This piece of code comes with no guaranties. You can use it for whatever you want for free.
///
/// Modified by Will Huang ( http://blog.miniasp.com/post/2008/02/14/Quoted-Printable-Encoding-and-Decoding.aspx )
/// Modified at 2008-02-13
///
/// Modified by yongfa365 (http://www.yongfa365.com)
/// Modified at 2008-11-29
/// Modified for MySelf
///
/// </summary>
 
2008-11-25 11:00:16
Some Cool Tips for .NET
1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)
form1.Text = string. Empty;
form1.ControlBox = false;

2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)
确认..
 
2008-11-3 11:19:40
//遍历窗体上所有CheckBox控件 .net winform

StringBuilder sb = new StringBuilder();
foreach (Control c in Controls)
{
if (c is CheckBox)
{
if (((CheckBox)c).Checked == true)
{
sb.Append(",");
sb.Append(c.Text.ToString());
}
}
}
sb.Append(",");

textBox1.Text = sb.ToString();
 
2008-9-19 14:31:28
控件的各属性的值如果改变过他会以黑体显示
如果是bool的可以直接双击改变他的值
可以双击属性名来选中属性的值.
 
2008-9-11 1:38:04
以前看到有人好像要改写utf8让他不生成标记,大可不用那样,系统已经提供的相关功能了。
 
2008-9-9 10:11:14
winform用起来感觉就是没有web方便,不知道微软怎么想的
web里的FindByText,FindByValue多直观呀而在
winform里,确还用FindString,根本就没有想让你用ByValue,以至于我找了一天和想了很多方法来实现根据ValueMember来查找,但都比较郁闷,最终虽然还是找到了,不过感觉不伦不类的,既然value用的这么普遍,为什么就不能在winform里加上这个呢。
 
2008-9-3 17:03:10
public class ListItem
{
private string _key = string.Empty;
private string _value = string.Empty;
public ListItem(string pKey, string pValue)
{
_key = pKey;
_value = pValue;
}
public override string ToString()
{
return this._value;
..
 
2008-9-3 12:15:43
1:CodeSmith
一款人气很旺国外的基于模板的dotnet代码生成器
官方网站:http://www.codesmithtools.com
官方论坛:http://forum.codesmithtools.com/default.aspx
版权形式:30天试用
开源:否
需要先注册确认后才能下载
 
2008-8-30 11:21:43
对于用户来说,各个跳转都差不很多,都可以达到目的。但对于SEO来说,这些差得很远,状态200第三条使用合适对SEO有很大好处,但状态200的第一条和状态302却基本没有一点益处,然后很可惜,302跳转被用到了满大街。
 
2008-8-29 9:39:05
mCommand.Connection.Close();

不是把连接真正的关闭,而是把连接归还给连接池。
 
2008-8-9 22:36:13
protected override void Render(HtmlTextWriter writer)
{
//把最终要输出的html压缩后再输出
StringWriter html = new StringWriter();
HtmlTextWriter tw = new HtmlTextWriter(html);
base.Render(tw);
string outhtml = html.ToString();
outhtml = Regex.Replace(outhtml, "\\s+", " ");
outhtml = Regex.Replace(outhtml, ">\\s+<", "><");
outhtml = outhtml.Trim();
writer.Write(outhtml);
}
 
     
 
 
文章分类
 
 
.Net + C#(73)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(26)
 
 
 
 
 
心程(68)
 
生活(97)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com yongfa365'CodePlex yongfa365'CodeGoogle

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!