弹出提示窗口代码
摘要:弹出提示窗口代码 StringBuilder scriptStr = new StringBuilder();scriptStr.Append("");if (!ClientScript.IsClientScriptBlockRegistered("ttrndd"))this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), ...
阅读全文
posted @
2009-02-19 14:50
张亦驰
阅读(637)
推荐(0)
将GridView导出为Excel
摘要:public override void VerifyRenderingInServerForm(Control control) { // Confirms that an HtmlForm control is rendered for }private void ToExcel(Control ctl, string FileName) { H...
阅读全文
posted @
2009-02-19 14:18
张亦驰
阅读(299)
推荐(0)
转跳页面时的参数传递
摘要:使用转跳时: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 Response.Redirect("RegisterProduct.aspx?RedirectPage=SpeciallyPage.aspx"); RegisterProduct.as...
阅读全文
posted @
2009-02-18 17:14
张亦驰
阅读(273)
推荐(0)
GridView鼠标移动变色和编辑状态列宽限制
摘要:1protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e) 2 { 3 //随鼠标移动变色 4 if (e.Row.RowType == DataControlRowType.DataRow) 5 { 6 e.Row.Att...
阅读全文
posted @
2008-05-16 10:50
张亦驰
阅读(537)
推荐(0)