05 2012 档案
摘要:protected LosFormatter losFormatter = new LosFormatter(); protected override object LoadPageStateFromPersistenceMedium() { string key = Request.RawUrl + "__viewstate"; if (Session[key] != null) { object obj = null; using (System.IO.MemoryStream strea...
阅读全文
摘要:1、限制文本框只能输入整数数字 <input id="txtRate" type="text" class="input form-control" onkeypress='return IsNumber(event)' /> 2、限制文本框只能输入包括小数的数字类型,支持火狐、ie、google
阅读全文
摘要:<asp:HyperLink ID="hlAlter" runat="server" NavigateUrl='<%# string.Format("SendGroupMessage.aspx?groupMessageId={0}&type=GroupMessage",CommonMethod.UrlDESEncrypt(Eval("GroupMessageId"),true)) %>' Visible="false">修改</asp:Hy.
阅读全文
摘要:1、晚9-11点为免疫系统排毒,应静听音乐。2、晚11-凌晨1点,肝排毒,需在熟睡中进行。3、半夜至凌晨4点为脊椎造血时段,不宜熬夜。4、凌晨1-3点,胆排毒。5、凌晨3-5点,肺排毒。6、凌晨5-7点,大肠排毒应排便。7、凌晨7-9点,小肠吸收营养时段,应早餐。不要再熬夜喽!
阅读全文
摘要:1.子级Repeater中绑定父级的某个字段:<%# DataBinder.Eval((Container.NamingContainer.NamingContainer as RepeaterItem).DataItem, "ModuleName") %>2.在子级Repeater中引用父级某个控件的值:<%# ((HiddenField)((RepeaterItem)((Repeater)(((RepeaterItem)Container).NamingContainer)).NamingContainer).FindControl("mod
阅读全文
摘要:/// <summary> /// 递归循环获取 /// </summary> protected StringBuilder strMenu = new StringBuilder(); private void GetList(int departmentsParentId) { IList<DepartmentData> list = DepartmentBll.GetAll(departmentsParentId); for (int i = 0; i < list.Count; i++) { ...
阅读全文
摘要:可显示所有 Internet Explorer 版本呈现的网页。它还支持在 Firefox for Windows 中呈现。它还通过联机测试服务提供其他浏览器支持,目前支持 Chrome、Safari for Mac、Firefox、Internet Explorer 8 和 Internet Explorer 9。
阅读全文
摘要:并多次写入注册表项以实现其启动自动加载的目的,如:HKLM\Software\Microsoft\Windows\CurrentVersion\RunHKEY_USERS\S-1-5-21-515967899-162531612-725345543-1003\Software\Microsoft\WindowsNT\CurrentVersion\Windows\LoadHKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Windows\Load
阅读全文
摘要:asp:HyperLink中 Eval要用string.Format绑定<asp:HyperLink ID="hlAlter" runat="server" NavigateUrl='<%# string.Format("AlterStudentExamScore.aspx?examScoreId={0}&plateId={1}",Common.UrlDESEncrypt(Eval("ExamScoreId"),true),HttpUtility.UrlEncodeUnicode(Req
阅读全文

浙公网安备 33010602011771号