摘要:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if((e.Row.RowState & DataControlRowState.Edit) != 0 && e.Row.RowType == DataControlRowType.DataRow) { Label... 阅读全文
摘要:
2007-06-28 17:25:06<html><head><title>DIV层切换</title><script language="JavaScript" type="text/javascript">/*********************************************功能: 通用DIV切换函数参数: di... 阅读全文
摘要:
如果ASP.NET网站程序超时,可以尝试使用如下方法解决1.在代码里面,把未关闭的连接关闭2.扩大共享池,方法如下:解决方法可以是修改连接池的连接生存期,因为默认值是60秒,即连接从应用程序被释放后可以在池中保存的时间。具体操作步骤如下:如 果是ODBC的话,则可以在ODBC Data Source Administrator中手动更改,该程序位于“Start”菜单中的... 阅读全文
摘要:
delete from dbo.CompanyInfo where CompanyName in (select CompanyName from CompanyInfo group by CompanyName having count(CompanyName) > 1) and CompanyID not in (select min(CompanyID) from CompanyInf... 阅读全文
摘要:
public void OutPutExcel(string filename) { //定义文档类型、字符编码 Response.Clear(); Response.Buffer = true; Response.Charset = "UTF-8"; //下面这行很重要, attachment 参数表示作为附件下载,您可以改成 online在线打开 //filename=FileFlow.x... 阅读全文
摘要:
页面跳转<meta http-equiv="refresh" content="0;URL=http://59.108.226.211/login.aspx" /> 阅读全文
摘要:
Page.ClientScript.RegisterStartupScript(this.GetType(), "a", "<script>document.getElementById('Banner').style.backgroundImage='url(" + sdr["ctpicurl"].ToString() + ")'</script>"); 阅读全文