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
阅读全文
摘要:protected void Button5_Click(object sender, EventArgs e) { if (GridView1.Rows.Count > 0) { //调用导出方法 ExportGridViewForUTF8(GridView1,"computer.xls"); } else { // obo.Common.MessageBox.Show(this, "...
阅读全文
摘要:Response.Write("<script>window.close()</script>");
阅读全文
摘要:在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
阅读全文