摘要: height: auto!important; height: 600px; min-height:600px 关于父容器不自动适应增长的问题,需同时在子容器和父容器加上 <div style="width: 700px; background-color: #0066FF; height: auto!important; min-height:400px "> <div style="width: 600px; height: 200px; background-color: #FF0066;height: auto!important; mi 阅读全文
posted @ 2012-08-23 10:27 ComBat 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> <head> <meta http-equiv="Content-Type" content=&qu 阅读全文
posted @ 2012-08-22 09:41 ComBat 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 通用后台设计(一)通用后台设计(一)using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace AfterEndDemo.Admin{ public partial class NewsList : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ... 阅读全文
posted @ 2012-06-25 11:00 ComBat 阅读(265) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace AfterEnd.Admin{ //让页面继承自该类,做验证 public class BasePage:System.Web.UI.Page { public BasePage() { this.Load += new EventHandler(BasePage_Load); } //页面加... 阅读全文
posted @ 2012-06-25 10:50 ComBat 阅读(250) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;namespace GridView分页时维护CheckBox选择状态{ public partial class Default : System.Web.UI.Page { protected... 阅读全文
posted @ 2012-06-25 10:47 ComBat 阅读(192) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;/// <summary>///StringHandler 的摘要说明/// </summary>public class StringHandler{ /// <summary> /// 转换封面图片路径 /// </summary> /// <param name="isbn">isbn号</param> /// < 阅读全文
posted @ 2012-06-25 10:29 ComBat 阅读(201) 评论(0) 推荐(0) 编辑
摘要: View Code URL截取网页名字string URL= Request.Url.AbsoluteUri.Substring(Request.Url.AbsoluteUri.LastIndexOf("PF")+3);//如PF/aaaa.aspx 截取PF/后面 if (URL.IndexOf("?")!=-1) { URL= URL.Substring(0, URL.LastIndexOf("?")); //截取aaaa.aspx?id=1 截取问号之前的 } 阅读全文
posted @ 2012-06-25 10:22 ComBat 阅读(198) 评论(0) 推荐(0) 编辑
摘要: View Code window.parent.opener=null;window.parent.close();window.location.href=('Login.aspx')window.parent: 页面a 下面有框架集 parent 指父窗口:即页面a1、window.parent一般是在iframe中使用来调用父页面方法或属性2、window.opener用来指示打开这个窗口的父窗口,也就是调用window.open()来打开本窗口的父窗口, 就算中间经过了action操作,一个window的opener也不会变。3、如果window.open()中间经过了 阅读全文
posted @ 2012-06-25 09:36 ComBat 阅读(164) 评论(0) 推荐(0) 编辑
摘要: View Code 2012-06-12 16:26 Web.config 配置<?xml version="1.0"?><configuration> <connectionStrings> <add name="525wzqc" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|525sj.mdb;Persist Security Info=true;" /> </con 阅读全文
posted @ 2012-06-25 09:30 ComBat 阅读(178) 评论(0) 推荐(0) 编辑
摘要: View Code <table><tr><td width= "45% "style= "word-break:break-all "> <asp:Repeater ID="rpaboutus" runat="server"> <ItemTemplate > <%# Eval("Con").ToString().Length > 200 ? Eval("Con").ToString().Substrin 阅读全文
posted @ 2012-06-25 09:29 ComBat 阅读(184) 评论(0) 推荐(0) 编辑