03 2012 档案

摘要:ifobject_id('dbo.fn_split')isnotnulldropfunction dbo.fn_splitgocreatefunction dbo.fn_split ( @inputstrvarchar(8000), @sepratorvarchar(10) ) returns@temptable (a varchar(200)) as begin declare@iint set@inputstr=rtrim(ltrim(@inputstr)) set@i=charindex(@seprator, @inputstr) while@i>=1 begin 阅读全文
posted @ 2012-03-29 15:57 卢青松 阅读(531) 评论(0) 推荐(0) 编辑
摘要:protected void Button5_Click(object sender, EventArgs e) { if (GridView1.Rows.Count > 0) { //调用导出方法 ExportGridViewForUTF8(GridView1,"computer.xls"); } else { // obo.Common.MessageBox.Show(this, "... 阅读全文
posted @ 2012-03-27 14:25 卢青松 阅读(332) 评论(0) 推荐(0) 编辑
摘要:Response.Write("<script>window.close()</script>"); 阅读全文
posted @ 2012-03-08 17:41 卢青松 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:在gridview中加入模板列HyperLink,點擊此連接,彈出模式窗口,並傳入所點行的主鍵 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowIndex != -1) {HyperLink lblAssetName = (HyperLink)e.Row.FindControl("lbAssetName"); lblAssetNam 阅读全文
posted @ 2012-03-08 16:51 卢青松 阅读(2010) 评论(0) 推荐(0) 编辑