摘要: stringBuilder,完全可以替代string,最主要的是它的效率高//必须先实例化一个stringBuilder sBuilder = new stringBuilder();//您可以拼接执行SQL语句,易于阅读sBuilder.Append("select * from tb1");sBuilder.Append("where id=1");上面同等于strng sBuilder = "select * from tb1 where id=1"; 阅读全文
posted @ 2013-02-04 11:12 乡土的味道 阅读(164) 评论(0) 推荐(0) 编辑
摘要: <p align="left" style="height:60px;line-height:30px;margin:0;overflow-y:auto; overflow-x:hidden"> </p> 阅读全文
posted @ 2013-02-04 11:08 乡土的味道 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: public int AddProduct(string ProductCode, string ProductName, decimal CurrentPrice, decimal OriginalPrice, string PackingUnit, string Specification, string PromotionalPrice, int CompanyID, string PromotionalStart, string PromotionalEnd) { string strSql = "INSERT INTO tblProduct... 阅读全文
posted @ 2013-02-04 11:07 乡土的味道 阅读(234) 评论(0) 推荐(0) 编辑
摘要: HTML前台模版: <asp:Repeater ID="lstProduct" runat="server"> <HeaderTemplate> <table class="lstTable"> <tr class="FormHeader" style="font-weight: bold;"> <td> 产品货号 </td> ... 阅读全文
posted @ 2013-02-04 11:03 乡土的味道 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 页面刷新前先提示后跳转Response.Write("<script>alter('提交成功!')</script>");Response.Write("<script>window.location.href='MaintainSupplierCompany.aspx'</script>");在Load事件里写:(就可以在单击btnClean按钮时跳出提示,单击确定执行Click事件下的操作,取消则不执行!)btnClean.Attributes.Add("onc 阅读全文
posted @ 2013-02-04 10:56 乡土的味道 阅读(912) 评论(0) 推荐(0) 编辑
摘要: JQuery.js/*! jQuery v1.8.3 jquery.com | jquery.org/license */(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typ 阅读全文
posted @ 2013-02-04 10:38 乡土的味道 阅读(500) 评论(0) 推荐(0) 编辑