摘要:
原文地址http://www.jb51.net/article/34754.htmHTML ... 阅读全文
摘要:
if (Connection.State == ConnectionState.Open || Connection.State == ConnectionState.Broken) { Connection.Close(); } 阅读全文
摘要:
管理导航系统设置用户管理内容管理其他管理1111111222222222333333333334444444444555555555555555 管理导航 系统设置 用户管理 内容管理 其他管理 1111111 222222222 33333333333 ... 阅读全文
摘要:
public static void excelbase() { string filename = System.DateTime.Now.Year.ToString() + System.DateTime.Now.Month.ToString() + System.DateTime.Now.Day.ToString() + System.DateTime.Now.Hour.ToString() + System.DateTime.Now.Second.ToString() + System.DateTime.Now.Millisecond.ToString() + ".... 阅读全文
摘要:
exec sp_msforeachtable 'sp_changeobjectowner "?","dbo"' 阅读全文
摘要:
一维数组(查询的数据保存到数组) string[] arr1 = new string[Data.GetDataSet(Data.sqlstr).Tables[0].Rows.Count]; for (int i = 0; i < Data.GetDataSet(Data.sqlstr).Tables[0].Rows.Count; i++) { arr1[i] = Data.GetDataSet(Data.sqlstr).Tables[0].Rows[i][1].ToString(); } ... 阅读全文
摘要:
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;/// /// WebMessageBox 的摘要说明/// public class WebMessageBox{ /// ///... 阅读全文
摘要:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标经过时,行背景色变 e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#E6F5FA'"); ... 阅读全文