posted @ 2007-02-16 14:05
随笔分类 - 技术文档
摘要:Web.config详解<?xml version="1.0" encoding="utf-8" ?><configuration>所有.NET配置文件所必须的根元素 <system.web>实际ASP.NET配置设置的根元素 <!--动态调试编译 设置 compilation debug="true" 以启用 ASPX 调试。否则,将此值设置为 fals...
阅读全文
摘要:首先,請先把你的 ButtonField 轉換成 TemplateField,把它改成如下的樣子: ' Text="Details" /> ... 注意 CommandArgument='' 這句必須手動加上去。把 OrderID 改名成你的欄位名稱。 接著,請修改 GridView1_R...
阅读全文
posted @ 2007-01-31 16:43
摘要:FindControl为我们提供了可以在C#文件中动态控制DataGrid,DataList中ItemTemplate里面的控件,甚至可是实现控件中嵌套一个控件。用好FindControl可以省去在aspx文件中使用比如这样来读取数据的麻烦。 先申明控件,然后使用,很是方便。 1 HyperLink hy2 = (HyperLink)this.DataGrid1.Items[i].FindCo...
阅读全文
posted @ 2007-01-03 13:27
摘要:《asp.net 2.0 揭密》下载http://www.fixdown.com/soft/19605.asp即将出炉的《ASP.NET 2.0高级编程》(1月初发售)http://www.china-pub.com/computers/common/info.asp?id=28152 http://beta.asp.net/QUICKSTART/aspnet/default.aspxhttp:...
阅读全文
posted @ 2007-01-02 09:59
摘要:1. 打开新的窗口并传送参数传送参数:response.write(“〈script〉window.open(’*.aspx?id=“+this.DropDownList1.SelectIndex+“&id1=“+...+“’)〈/script〉“)接收参数:string a = Request.QueryString(“id“);string b = Request.QueryString(“i...
阅读全文
posted @ 2006-01-25 11:20
摘要:如果你正在使用ASP.NET,你一定对DataGrid控件非常熟悉。DataGrid控件提供了各种特性,通过这些特性可以很容易地在一个Web页面上以列表形式显示数据。但是,如果你不想使用HTML表格形式呢?此时,可以使用一个DataGrid的一个鲜为人知的兄弟控件,即Repeater控件。Repeater控件提供显示你所需要数据的灵活性。 Repeater控件是什么? Repeater是一个可重...
阅读全文
posted @ 2005-11-29 15:51