随笔分类 -  ASP.NET

摘要:e.Row.Attributes.Add("Style", "background-color:#D3D3D3"); 阅读全文
posted @ 2013-05-13 16:49 louiskoo 阅读(256) 评论(0) 推荐(0)
摘要:/// <summary> /// 判断是否是非法字符 /// </summary> /// <param name="str">判断是字符</param> /// <returns></returns> public static Boolean isLegalNumber(string str) { char[] charStr = str.ToLower().ToCharArray(); for (int i = 0; i < charStr.Length; i... 阅读全文
posted @ 2013-05-13 16:31 louiskoo 阅读(5436) 评论(1) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;using System.IO;using System.Globalization;namespace ADM.ProgressMonitor.DataObjects{ public class ErrHandler { public static void WriteError(Exception error) { ... 阅读全文
posted @ 2013-05-13 16:10 louiskoo 阅读(198) 评论(0) 推荐(0)
摘要:using System;using System.Linq;using ADM.ProgressMonitor.DataObjects;using System.Collections.Generic;using System.Web.UI;using ADM.ProgressMonitor.WebControl;using System.Web.SessionState;using ADM.ProgressMonitor.BusinessRules;using System.Data.Objects;namespace ADM.ProgressMonitor.DataAccess{ ... 阅读全文
posted @ 2013-05-13 16:09 louiskoo 阅读(377) 评论(0) 推荐(0)
摘要:<script language="javascript" type="text/javascript"> function StartProgressBar() { ShowConfirmClose(false); var myExtender = $find('ModalPopupExtender1'); myExtender.show(); return true; } var pb_strConfirmCloseMessage; var pb_... 阅读全文
posted @ 2013-05-13 16:06 louiskoo 阅读(412) 评论(0) 推荐(0)
摘要:AjaxFunc.MessageBox(Page, "5", "请选择至少一种型号!");using System;using System.Web.UI;/// <summary>/// AJAX帮助类/// </summary>public static class AjaxFunc{ /// <summary> /// 返回上一页 /// </summary> /// <param name="ps"></param> public static void 阅读全文
posted @ 2013-05-13 16:05 louiskoo 阅读(202) 评论(0) 推荐(0)
摘要:if(!IsPostBack) 阅读全文
posted @ 2013-05-13 16:03 louiskoo 阅读(116) 评论(0) 推荐(0)
摘要://分页初始化 btnFirst.Enabled = true; btnPrev.Enabled = true; btnNext.Enabled = true; btnLast.Enabled = true; LblCurrentIndex.Visible = true; LblPageCount.Visible = true; LblRecordCount.Visible = true; LblCurrentIndex... 阅读全文
posted @ 2013-05-13 16:01 louiskoo 阅读(251) 评论(0) 推荐(0)
摘要:using (System.Data.Common.DbTransaction traction = context.Connection.BeginTransaction()) { try { SRC_DEF_BASELINE_ALART t = new SRC_DEF_BASELINE_ALART(); //新添加的SRC_DEF_BASELINE_ALART的ID位已有的加1 ... 阅读全文
posted @ 2013-05-13 15:59 louiskoo 阅读(230) 评论(0) 推荐(0)
摘要:protected void RbIsManual_CheckedChanged(object sender, EventArgs e) { RadioButton rb = sender as RadioButton; if (rb != null) { GridViewRow row = rb.Parent.Parent as GridViewRow; Button confirm = (Button)row.FindControl("save")... 阅读全文
posted @ 2013-05-13 15:56 louiskoo 阅读(343) 评论(0) 推荐(0)
摘要:<asp:GridView ID="AeroDataListGridView" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" onrowdatabound="AeroDataListGridView_RowDataBound" AllowPaging="True" onpageindex 阅读全文
posted @ 2013-05-13 15:54 louiskoo 阅读(7233) 评论(0) 推荐(0)
摘要:HttpContext.Current.Server.MapPath("~/") 阅读全文
posted @ 2013-02-11 21:22 louiskoo 阅读(531) 评论(0) 推荐(0)
摘要:<asp:Repeater ID="RepeaterManage" runat="server" onitemcommand="RepeaterManage_ItemCommand" onitemdatabound="RepeaterManage_ItemDataBound" > <HeaderTemplate> <table class="tablered"width="100%" border="0" cellpaddin 阅读全文
posted @ 2013-01-27 22:27 louiskoo 阅读(231) 评论(0) 推荐(0)
摘要:http://aspnetresources.com/articles/CustomErrorPages 阅读全文
posted @ 2013-01-22 10:31 louiskoo 阅读(166) 评论(0) 推荐(0)
摘要:http://hi.baidu.com/comeon/item/adb078ce82a7750e0bd93a38 阅读全文
posted @ 2013-01-22 10:24 louiskoo 阅读(115) 评论(0) 推荐(0)