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();
阅读全文
摘要:一拖动ComboBox控件,整个VS就瘫痪了,看是不是打开了翻译软件,这个会引起崩溃
阅读全文
摘要:[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 }; }
阅读全文
摘要://不可用 var btnSearch = $("#<%=btnSearch.ClientID %>"); btnSearch.attr("disabled", "disabled"); //可用 btnSearch.removeAttr('disabled');
阅读全文
摘要:<asp:LinkButton ID="lnkHostID" runat="server" Text='<%#Eval("hostid") %>' OnClientClick='<%# String.Format("return GotohostList(\"hostid={0}\")", Eval("hostid")) %>'></asp:LinkButton>
阅读全文
摘要:/// <summary> /// 将泛类型集合List类转换成DataTable /// </summary> /// <param name="list">泛类型集合</param> /// <returns></returns> public static DataTable ListToTable<T>(List<T> entitys) { //检查实体集合不能为空 if (entitys == null || entitys.Count < 1) ...
阅读全文
浙公网安备 33010602011771号