一行代码收集页
来源:互联网 发布:cnc编程视频教程 编辑:程序博客网 时间:2024/06/04 23:29
1. 获取类实体的属性值
//Object container
//System.ComponentModel 命名空间
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(container).Find(propName, true);
return descriptor.GetValue(container);
2. .net2.0 跟.net1.0 的asp.net应用程序不能同时分配到同一个应用程序池上(w3p.exe)
参考:http://blog.csdn.net/tiantian1980/archive/2008/05/30/2495417.aspx
3. Host文件位置 :C:/WINDOWS/system32/drivers/etc
4. Response.Redirect(http://www.0576sy.cn/); 后写不写Response.End(); 效果都是一样的.
5.使用 Response.Buffer = false; 可以是使页面内容直接输出,而不是生成全部html(输出数据)后再输出,可以在页面生成或者需要执行一个长时间操作是使用,把要长时间执行的操作写到页面末尾