10 2006 档案
摘要:在GridView1_RowDataBound事件中:Dim str As String = "demand_info.aspx?id=" + Server.UrlEncode("歡迎光臨!!")e.Row.Cells(1).Text = "" + e.Row.Cells(1).Text + "" e.Row.Cells(2).Text = "" + e.Row.Cells(2).T...
阅读全文
摘要:只是GridView跟DataGrid原本設計的行為有點不同GridView在bind資料之前所隱藏欄位都不會受到DataBind()的影響所以也就不會綁定任何資料你可以先讓所有欄位都是可見的然後在RowCreated事件中再用程式隱藏欄位 1 public void GridView_OnRowCreated(object sender, GridViewRowEventArgs e...
阅读全文
摘要:在vs 2003中是: 而在vs 2005中是:在aspx檔的第一行加上MaintainScrollPositionOnPostback="true"
阅读全文
摘要:http://www.purecs.net/Threads/t376.aspx在網頁上放置一個SiteMapPath可以提供使用者一個清楚的瀏覽路標指示,如果你的SiteMap是靜態不會變動的倒是很簡單,只要編寫好一個XML檔放上去,其它的事就可以不用管了,但是在動態網頁中SiteMap的路徑可能會隨著不同的情況而有所更動,這時預先建立的靜態SiteMap似乎就不怎麼好用了,因為你無法事先去預測S...
阅读全文
摘要:http://community.csdn.net/Expert/topic/5102/5102058.xml?temp=.5770838Windows网络操作系统内置的IIS是大家最常用的Web服务器。但在系统默认配置下,IIS使用的是“HTTP协议”以明文形式传输数据,没有采用任何加密手段,传输的重要数据很容易被窃取。这对于一些安全性要求高的网站来说,是远远不够的。为了保证重要数据的万无一失,...
阅读全文
摘要:提供一个很好的ABAP Tipshttp://www.sap.com/community/int/china/ShowPost.epx?PostID=264234http://www.henrikfrank.dk/homeuk.htmlhttp://www.henrikfrank.dk/abapuk.html我申请到一个免费的网络硬盘,大家可以通过下面的链接进入下载。http://blog.csd...
阅读全文
摘要:create procedure Vendor_add_score@Vendor_Code nvarchar(50),@Score floatas update dbo.Vendor set Score=@Score+(select a.Score from dbo.Vendor awhere (a.Vendor_Code=@Vendor_Code))where (Vendor_Code=@Ven...
阅读全文
摘要:http://www.clingingboy.com/blog/article.asp?id=205http://dlwang2002.cnblogs.com/archive/2005/08/05/207943.html都說gridview分頁不需要代碼,事實上還是需要的 Protected Sub GridView1_PageIndexChanging(ByVal sender As Obje...
阅读全文
摘要:两条关于生成排名的SQL语句: select name,score,(select count(*) from t where score>a.score)+1 from t a order by score 上面是:1,2,3,3,3,6,7... 下面是:1,2,3,3,3,4,5 select name,score,(select count(distinct score) from t w...
阅读全文
摘要:int isFind = 0; for (int i = 0; i < ds.Tables[0].Columns.Count; i++) { if (ds.Tables[0].Columns[i].ColumnName.ToString().Trim() == "testName") { isFi...
阅读全文