摘要:
我们可以通过用自己的 XML 配置元素来扩展标准的 ASP.NET 配置设置集,要完成这一功能,我们必须实现继承System.Configuration.ConfigurationSection 类来实现自定义配置节,在1.0中当然也可以通过IconfigurationSectionHandler 接口创建自定义配置节!这里我们主要学一下通过ConfigurationSection类来实现简单的配...
阅读全文
posted @ 2007-11-01 17:14
都说大哥好
阅读(3328)
推荐(1)
摘要:
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls...
阅读全文
posted @ 2007-11-01 10:18
都说大哥好
阅读(2741)
推荐(0)
摘要:
我们可以在Gridview的RowDataBound事件中来处理相关颜色的显示! 很简单,看代码就能明白!protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType.DataRow){stringstr=Convert.ToString(Da...
阅读全文
posted @ 2007-10-30 12:49
都说大哥好
阅读(632)
推荐(0)
摘要:
我们知道在GridView中当我们单击按钮的时候,就会触发RowCommand 事件,因此我们可以通过使用此事件来获得Gridview控制中的值! 在GridView控件中的BoundField字段都有一个CommandName属性,通过获得它的属性值来判断我们单击的是那一列字段。 下面请看代码:protectedvoidGridView1_RowCommand(objectsender,Grid...
阅读全文
posted @ 2007-10-30 12:08
都说大哥好
阅读(3480)
推荐(0)
摘要:
RowCommand 在 GridView 控件中单击某个按钮时发生。此事件通常用于在该控件中单击某个按钮时执行某项任务。PageIndexChanging 在单击页导航按钮时发生,但在 GridView 控件执行分页操作之前。此事件通常用于取消分页操作。 PageIndexChanged 在单击页导航按钮时发生,但在 GridView 控件执行分页操作之后。此事件通常用于在用户定位到该控件中不同...
阅读全文
posted @ 2007-10-29 16:04
都说大哥好
阅读(1792)
推荐(0)
摘要:
<membershipdefaultProvider="SqlProvider"userIsOnlineTimeWindow="15"><providers><clear/><addname="SqlProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="...
阅读全文
posted @ 2007-10-29 11:51
都说大哥好
阅读(627)
推荐(0)
摘要:
<connectionStrings><addname="NorthWindConn"connectionString="Server=(local);IntegratedSecurity=True;Database=Northwind;PersistSecurityInfo=True"providerName="System.Data.SqlClient"/></connectionString...
阅读全文
posted @ 2007-10-29 11:45
都说大哥好
阅读(313)
推荐(0)
posted @ 2007-09-12 10:48
都说大哥好
阅读(262)
推荐(0)