快乐的生活……

导航

随笔分类 -  ASP.NET

[ASP.NET揭密读书笔记]额外的控件和资源
摘要:一、Microsoft Internet Explorer WebControls1.TreeView 2.Toolbar(工具栏) 3.Tabstrip(标签页)二、使用ASP.NET Starter KitsThe ASP.NET Starter Kits illustrate a number of best practices for building applications using... 阅读全文

posted @ 2006-06-26 17:27 小诈 阅读(1511) 评论(0) 推荐(0)

[ASP.NET揭密读书笔记]应用程序跟踪和监视
摘要:一、错误定向:Two configuration settings affect how error information is displayed:1.Custom errors mode— This setting enables or disables custom errors. When custom errors mode is enabled, errors on a page a... 阅读全文

posted @ 2006-06-26 17:27 小诈 阅读(1560) 评论(0) 推荐(0)

[ASP.NET揭密读书笔记]ADO.NET介绍
摘要:一、Creating an ASP.NET Page Transaction--页面事务Finally, you can create a transaction at the level of an ASP.NET page. You can enroll an ASP.NET page in a transaction by adding one of the following page d... 阅读全文

posted @ 2006-06-26 17:26 小诈 阅读(2161) 评论(0) 推荐(0)

[ASP.NET揭密读书笔记]用户自定义控件
摘要:在用户自定义控件中可以包括:1.静态内容2.动态内容(对于动态的内容,不能直接使用那些控件的属性。可以通过属性来暴露这些控件的属性,或者用一个hashtable来集合所有控件的相关属性而直接暴露这个hashtable.)3.自定义控件有自己的事件处理4.可以通过LoadControl(路径)来编程控制自定义控件的载入,还可以做一些向下转型为具体的control来做一些控制。有些网站通过多个用户自定... 阅读全文

posted @ 2006-06-26 17:25 小诈 阅读(1829) 评论(0) 推荐(0)

[ASP.NET揭密读书笔记]连接池
摘要:When using SQL connection pooling, you can place additional options in a connection string to modify how connection pooling works. For example, you can specify the minimum and maximum size of the conn... 阅读全文

posted @ 2006-06-26 17:22 小诈 阅读(1703) 评论(0) 推荐(0)

WEB中服务器端Table的行集中要注意ViewState
摘要:今天发现WEB中服务器端Table的行集在动态添加时,如果第一次添加了很多行,其中行的RowSpan等属性如果不是默认值(我们修改过)。当我们再次clear这些行集,并new TableRow(),然后添加到Table中,这个时候这些行集会从ViewState中载入原来的那些行集的那些属性,虽然是new的TableRow仍然无济于事,导致意想不到的错误。这些只好设置TableRow的EnableV... 阅读全文

posted @ 2006-01-19 01:00 小诈 阅读(538) 评论(0) 推荐(0)

为什么动态添加的控件信息不见了?
摘要:今天遇到一个老问题,原来解决过的现在又忘记了,汗啊。问题是这样的,我在一个table里面动态添加了n个textbox,然后客户端输入内容之后,我在服务器端就出现了这2个问题。1. 取到的动态载入textbox的内容为"",因为我每次page load都动态加载那些textbox了,所以每次取得的都是新添加的textbox的""。2. 如果加入if(!IsPostBack)那么那些textbox根本... 阅读全文

posted @ 2005-07-28 18:03 小诈 阅读(979) 评论(4) 推荐(0)

Web进度条的简单方案
摘要:using System; using System.Web; namespace webDBADMIN.UserControls { /// /// WebProgressBar Web页面使用的进度条。仅提供静态方法。 /// public class WebProgressBar { private WebProgressBar(... 阅读全文

posted @ 2005-07-22 09:08 小诈 阅读(768) 评论(0) 推荐(0)

The ASP.NET HTTP Runtime(From MSDN)
摘要:The Long and Winding Road of a Request from the URL String to the HTML Code 阅读全文

posted @ 2005-04-20 18:49 小诈 阅读(1092) 评论(0) 推荐(0)

The ASP.NET Page Object Model (From MSDN)
摘要:One Day in the Life of an ASP.NET Web Page 阅读全文

posted @ 2005-04-20 14:52 小诈 阅读(629) 评论(0) 推荐(0)

如何用客户端脚本触发服务器端控件的事件
摘要:问题:。这是服务器端控件。如何在客户端脚本function doSelect(){}中触发上个控件的click事件? 思归的答复是:you might need to change 'WritConfirm" to its client ID function doSelect(){ document.getElementById('WritConfirm').click();} 还有一... 阅读全文

posted @ 2005-03-22 08:54 小诈 阅读(700) 评论(0) 推荐(0)

为DataGrid添加单选按钮
摘要:该文章出自:【孟宪会之精彩世界】 http://dotnet.aspx.cc/ShowDetail.aspx?id=18B9552B-6E7E-46DD-BEDA-2436C418BEE8 \ \ \ \ \ \ \ \ \\ \\ \ \ \//加上单选框列,一定要加Name属性,使其点中表现为一组 \'/> ... 阅读全文

posted @ 2005-03-22 08:53 小诈 阅读(735) 评论(0) 推荐(0)

绑定数据到下拉框中
摘要://下拉框 protected System.Web.UI.WebControls.DropDownList codeClass; string sql = "select name,codeclassid from codeclass"; DataSet ds =...;//根据sql生成DataSet if(ds != null && ds... 阅读全文

posted @ 2005-03-22 08:53 小诈 阅读(511) 评论(0) 推荐(0)

一个服务器端的后退控件
摘要:// ?2003 IDesign Inc. All rights reserved //Questions? Comments? go to //http://www.idesign.net using System; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawin... 阅读全文

posted @ 2005-03-22 08:52 小诈 阅读(561) 评论(0) 推荐(0)

Response.Write,Page.RegisterClientScriptBlock和Page.RegisterStartupScript
摘要:Response.Write("");输出在文件头部,一打开就执行。 RegisterClientScriptBlock一般返回的是客户端函数的包装, 而RegisterStartupScript返回得函数在document装载完成后会执行,类似于我们平时所说的body onload="f()"里面的函数; 这两个方法在客户端呈现的代码位置不同,RegisterClientScript... 阅读全文

posted @ 2005-03-22 08:51 小诈 阅读(2648) 评论(1) 推荐(0)

从HttpRequest获取数据
摘要:从HttpRequest获取数据 阅读全文

posted @ 2005-03-22 08:49 小诈 阅读(2279) 评论(2) 推荐(0)