2015年4月21日

导出EXCEL

摘要: publicstaticvoidChangeExcel(stringstrcodecom,stringstryear,stringstrmonther,stringstrdays,stringstrtype,stringstruserid){stringTemplate=HttpContext.Cu... 阅读全文

posted @ 2015-04-21 08:49 ★金★ 阅读(181) 评论(0) 推荐(0) 编辑

2014年8月8日

table变宽格式

摘要: 无标题文档testtest 阅读全文

posted @ 2014-08-08 18:47 ★金★ 阅读(221) 评论(0) 推荐(0) 编辑

2014年6月23日

IE11兼容性设定

摘要: 增加browser文件,如下:Web.config设置 阅读全文

posted @ 2014-06-23 13:37 ★金★ 阅读(235) 评论(2) 推荐(0) 编辑

2011年8月19日

C#获取多个相同name值

摘要: 本来用Request.Form["txtnote"]就可以了,可是里面如果有逗号怎么办,这种方式是自动以逗号分开的。 string[] nameParts = Request.Params.GetValues("txtnote")可满足要求。 然后合并即可,可用FOR,据说foreach性能更佳。 string a = ""; // for( int i = 0; i < nameParts.Le... 阅读全文

posted @ 2011-08-19 13:38 ★金★ 阅读(306) 评论(0) 推荐(0) 编辑

2011年7月11日

DIV左右行

摘要: View Code1<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2<htmlxmlns="http://www.w3.org/1999/xhtml">3<head>4<metahttp-equiv="Content-Type"content="text/html;charset=ut 阅读全文

posted @ 2011-07-11 15:33 ★金★ 阅读(212) 评论(0) 推荐(0) 编辑

2011年7月5日

Jquery绑定Select下拉菜单

摘要: 需要返回JSon数据集。 ASPX: $.ajax({ type: "POST", contentType: "application/json;utf-8", data: "{strclassid:'" + strclassid + "'}", url: "/AutoService.asmx/Show", success: function (msg) { var myObject = eval... 阅读全文

posted @ 2011-07-05 15:08 ★金★ 阅读(1740) 评论(0) 推荐(0) 编辑

2011年7月4日

SQL中多项合并时请加ISNULL

摘要: 今天发现多项中,其中有一项为空时,所有的数据都不显示。 加ISNULL解决: set @tolname=@tolname+ISNULL((SELECT [names] FROM [toolist] where id=@strSQL1),'')+'<br/>' 阅读全文

posted @ 2011-07-04 17:43 ★金★ 阅读(406) 评论(0) 推荐(0) 编辑

Repeater中绑定下拉菜单的2种方法

摘要: 1.第一种方法,Repeater中绑定DropDownList实现。 <asp:DropDownList ID="ddlfixs" runat="server" appenddatabounditems="true"> <asp:ListItem Value="">请选择治具</asp:ListItem></asp:DropDownList> <asp:HiddenField ID="hdfixi... 阅读全文

posted @ 2011-07-04 16:30 ★金★ 阅读(1044) 评论(0) 推荐(0) 编辑

2011年6月27日

WebForm设置URL路由后要照顾好之前的连接

摘要: 在接受参数之前加入转向,否则会出错。 if(!String.IsNullOrEmpty(Request.QueryString["rfsnewid"])){Response.Redirect("showrfs-"+Request.QueryString["rfsnewid"].ToString()+".html");}stringstRFSnewid=Page.RouteData.Values["RFSnewid"]asstring;Page.RouteData.Values只能接受URL路由来 阅读全文

posted @ 2011-06-27 16:35 ★金★ 阅读(382) 评论(0) 推荐(0) 编辑

2011年5月30日

Repeater中获取HTML select 值

摘要: 加入以下名字空间 using System.Web.UI.HtmlControls; 获取HtmlSelect ddltools1 = e.Item.FindControl("select1") as HtmlSelect; 阅读全文

posted @ 2011-05-30 13:51 ★金★ 阅读(379) 评论(0) 推荐(0) 编辑

导航