05 2012 档案

摘要:XmlDocument xml = new XmlDocument(); xml.Load(Server.MapPath("aa.xml"));//读取你的XML Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "text/xml"; xml.Save(Response.Output); Response.End(); 阅读全文
posted @ 2012-05-22 13:46 bule 阅读(330) 评论(0) 推荐(0)
摘要:一拖动ComboBox控件,整个VS就瘫痪了,看是不是打开了翻译软件,这个会引起崩溃 阅读全文
posted @ 2012-05-18 09:23 bule 阅读(810) 评论(0) 推荐(0)
摘要:[WebMethod(EnableSession = true)] [ScriptMethod] public static object TEST(string testval) { int type = 0; string message = ""; int precent = 0; return new { type = type, message = message, precent = precent }; } 阅读全文
posted @ 2012-05-16 14:21 bule 阅读(554) 评论(0) 推荐(0)
摘要://不可用 var btnSearch = $("#<%=btnSearch.ClientID %>"); btnSearch.attr("disabled", "disabled"); //可用 btnSearch.removeAttr('disabled'); 阅读全文
posted @ 2012-05-11 16:43 bule 阅读(247) 评论(0) 推荐(0)
摘要:<asp:LinkButton ID="lnkHostID" runat="server" Text='<%#Eval("hostid") %>' OnClientClick='<%# String.Format("return GotohostList(\"hostid={0}\")", Eval("hostid")) %>'></asp:LinkButton> 阅读全文
posted @ 2012-05-10 15:32 bule 阅读(177) 评论(0) 推荐(0)
摘要:/// <summary> /// 将泛类型集合List类转换成DataTable /// </summary> /// <param name="list">泛类型集合</param> /// <returns></returns> public static DataTable ListToTable<T>(List<T> entitys) { //检查实体集合不能为空 if (entitys == null || entitys.Count < 1) ... 阅读全文
posted @ 2012-05-08 16:02 bule 阅读(456) 评论(0) 推荐(0)