摘要: 通用后台设计(一)通用后台设计(一)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 阅读(268) 评论(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 阅读(251) 评论(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 阅读(194) 评论(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 阅读(202) 评论(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 阅读(200) 评论(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 阅读(167) 评论(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 阅读(180) 评论(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 阅读(190) 评论(0) 推荐(0) 编辑
摘要: View Code VS2010 using System;using System.Collections.Generic;using System.Text;using System.Data.OleDb;using System.Web.UI;using System.Web.UI.WebControls;public class KeyTitle : System.Web.UI.Page{ public KeyTitle() { this.Load += new EventHandler(Binds); } protected void Binds... 阅读全文
posted @ 2012-06-25 09:26 ComBat 阅读(261) 评论(0) 推荐(0) 编辑
摘要: View Code <a onclick="window.external.AddFavorite(location.href, document.title);" title="温州倾城新一代" style="cursor:hand">收藏本站</a> <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.wzqingcheng.com&# 阅读全文
posted @ 2012-06-25 09:24 ComBat 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 购物车设计(一)购物车设计(一)登陆页面————————————————————————————————using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.SqlClient;public partial class Login : System.Web.UI.Page{ protected void Page_Load(object sen... 阅读全文
posted @ 2012-06-25 09:20 ComBat 阅读(356) 评论(0) 推荐(1) 编辑
摘要: View Code 分页排序using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class PagerDemo1 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ... 阅读全文
posted @ 2012-06-25 09:16 ComBat 阅读(125) 评论(0) 推荐(0) 编辑