随笔分类 -  .net2.0

发邮件(asp.net2.0)(转)
摘要:Introduction [ Back To Top ] In Asp.Net 1.x sending email was fairly simple. The only issue was that the... 阅读全文

posted @ 2006-09-08 17:32 徐灿钊Asp.net专栏 阅读(1253) 评论(1) 推荐(0) 编辑

Understanding the Session Object in ASP.NET 2.0
摘要:今天csdn上面看到有关Session的文章,写得很好,是.net1.1的,手痒,就把书上的文字复制一下,仅供参考http://blog.csdn.net/cityhunter172/archive/2006/05/14/727743.aspxhttp://tb.blog.csdn.net/TrackBack.aspx?PostId=727743--------------------------... 阅读全文

posted @ 2006-05-17 20:25 徐灿钊Asp.net专栏 阅读(4207) 评论(0) 推荐(0) 编辑

获得扩展名[.net2.0]
摘要:Dim extension As String = System.IO.Path.GetExtension(fileUpload1.FileName) 阅读全文

posted @ 2006-05-04 16:35 徐灿钊Asp.net专栏 阅读(542) 评论(0) 推荐(0) 编辑

只能在执行 Render() 的过程中调用 RegisterForEventValidation(RegisterForEventValidation can only be called during Render(); )
摘要:当用GridView导出Execl的时候,会发生只能在执行 Render() 的过程中调用 RegisterForEventValidation的错误提示。有两种方法可以解决以上问题:1.修改web.config(不推荐)2.直接在导出Execl的页面修改 附:Gridview导出Execl可分页全部导出代码(C#) using System;using System.Data;using Sys... 阅读全文

posted @ 2006-04-29 13:22 徐灿钊Asp.net专栏 阅读(40970) 评论(15) 推荐(5) 编辑

DropDownList Inside The GridView Method 2
摘要:By AzamSharp Introduction: This is the second installment of the article, DropDownList Inside the GridView. In the previous article DropDownList Inside the GridView I talked about how you can popu... 阅读全文

posted @ 2006-04-29 12:03 徐灿钊Asp.net专栏 阅读(837) 评论(0) 推荐(0) 编辑

DropDownList Inside GridView (Method 1)
摘要:Introduction: In one of my previous articles I explained that how you can embed a DropDownList inside the GridView control. You can check out the article at Accessing DropDownList inside the GridVi... 阅读全文

posted @ 2006-04-29 12:02 徐灿钊Asp.net专栏 阅读(1343) 评论(1) 推荐(0) 编辑

page事件顺序(.net2.0)
摘要:Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit 如果有MasterPage的话,在这里执行MasterPage里面的page事件,事件顺序在这篇文章里有写道 Protected Sub Page_Init(ByVal se... 阅读全文

posted @ 2006-04-26 19:39 徐灿钊Asp.net专栏 阅读(1150) 评论(0) 推荐(0) 编辑

Url Rewriting with Regex for ASP.NET 2.0(在asp.net2.0中使用正规表达式建立URL重写)
摘要:A new feature in Asp.Net 2.0 is it's built-in url rewriting support. When i looked into this new feature i found out it lacked regular expressions support, wich is really the point of an Url Mapper. S... 阅读全文

posted @ 2006-04-26 14:17 徐灿钊Asp.net专栏 阅读(1333) 评论(2) 推荐(0) 编辑

关于.net 2.0连接局域网SQL Server 2000的问题
摘要:今天晚上本来要把数据库弄好的,可是发现用vs2005链接局域网中的其他计算机是出现错误,一开始就反应可能是防火墙的问题,就叫大笨雄把防火墙关了。后来在网上花了一个晚上的时间来找,网上的资料都找遍了,都见不着踪影,,头都打了,后来没有办法,看着那个大笨雄在看电影,怀疑他没有把防火墙关掉,然后就再问他是不是关掉了防火墙,晕倒,没有关掉,唉...........又浪费了一个晚上。ms sql ... 阅读全文

posted @ 2006-04-18 21:25 徐灿钊Asp.net专栏 阅读(1317) 评论(6) 推荐(0) 编辑

Get ConnectString Form Web.config
摘要:Listing 11-14: Building connection strings using ConnectionStringBuilderVB‘ Retrieve an existing connection string into a Connection String BuilderDim builder As New System.Data.SqlClient.SqlConnectio... 阅读全文

posted @ 2006-03-22 10:53 徐灿钊Asp.net专栏 阅读(1520) 评论(1) 推荐(0) 编辑

Authentication and Authorization
摘要:Authentication is the process that determines the identity of a user. After a user has been authenticated, a developer can determine if the identified user has authorization to proceed. It is impossib... 阅读全文

posted @ 2006-03-09 20:21 徐灿钊Asp.net专栏 阅读(568) 评论(0) 推荐(0) 编辑

密码最短长度为 7,其中必须包含以下非字母数字字符: 1(Password length minimum: 7. Non-alphanumeric characters required: 1. )
摘要:收到以上的消息主要是在创建用户的时候产生的,对于用Asp.net Web site manage的时候创建用户也会产生。主要是密码输入不符合要求,要改变上面的规定时,主要有两种方法:1.所有的站点都改变。 找到machine.config文件 里面有两个属性,一个是 minRequired... 阅读全文

posted @ 2006-03-07 15:26 徐灿钊Asp.net专栏 阅读(10041) 评论(17) 推荐(0) 编辑

VB2005语言新功能[转]
摘要:运算符重载/部分类/Continue 关键字/Using 关键字/拆分存取访问/泛型支持 运算符重载 Dim ShortSpan, LongSpan, TotalSpan As TimeSpan ShortSpan = TimeSpan.FromMinutes(100) LongSpan = TimeSpan.FromDays(14) TotalSpan = ShortSpan + LongSp... 阅读全文

posted @ 2006-03-05 14:41 徐灿钊Asp.net专栏 阅读(595) 评论(0) 推荐(0) 编辑

(WebSite----Asp.Net Configuration----->无法连接到SQL Server数据库------>选择数据存储区---->应用程序当前被配置为使用提供程序:AspNetSqlProvider)解决方案
摘要:1.假如我们使用Visual studio 2005在http://?上(如http://localhost/newtest)创建一个网站(WebSite)项目。 2.假如我们的电脑没有安装SQL Server 2005 Express,只安装了Sql Server 2000。 3.此时如果我们使用菜单【WebSite----Asp.Net Configuration】,随后就会弹出网站管理工具W... 阅读全文

posted @ 2006-03-03 19:10 徐灿钊Asp.net专栏 阅读(4386) 评论(6) 推荐(0) 编辑

.net2.0数据绑定语法
摘要:都是老话题了,在这里留个记号,加深印象 以前的在DataGrid,Datalist...当中绑定的语法一般都是: 现在不需要上面那么麻烦了,下面的是最简单的绑定语法: 当然,以前的绑定语法在.net2.0中还是可以用的。 对于XML数据绑定的语法又与上面的有点不一样了当使用XMLDataSource控件的时候,绑定的语法如下: 简便的方法如下: 格式化的和平常的绑定也是一样的: 以上都是返... 阅读全文

posted @ 2006-03-03 09:21 徐灿钊Asp.net专栏 阅读(826) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示