哲思

用哲学的头脑去思考问题!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年1月10日

摘要: 1.aspx文件:public void SetLabel(string str) { this.Label1.Text = str; ; } ascx文件;protected void Button1_Click(object sender, EventArgs e) { System.Web.UI.Page p = this.Page; Type pageType = p.GetType(); MethodInfo mi = pageType.GetMethod("SetLabel"); mi.Invoke(p, new object[] { "test!!!" }); }2. 在自定义控 阅读全文

posted @ 2011-01-10 13:59 哲 思 阅读(858) 评论(0) 推荐(0) 编辑

摘要: 今天刚做完的一个文章内容分页,主要原理是插入特殊字符,然后根据特殊字符进行字符串分解。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;namespace ZS.BLL{ public class Pager { public static string ContentPage(string content,int page) { string[] array_content = content.Split(new string[] { "{$:p 阅读全文

posted @ 2011-01-10 11:52 哲 思 阅读(553) 评论(0) 推荐(0) 编辑

摘要: 在一下网页中,一些人会用到iframe,dom获取页面中的iframe还是很简单的:父窗口中操作iframe:window.frames["iframeChild"].document //假如iframe的id为iframeChild在子窗口中操作父窗口:window.parent.document那么,用如果想用jquery的方法,我们怎么用jquery来获取iframe呢?下面是一下收集来的方法。获取页面的对象其实就是dom方法外面加上jquery的选择符:父窗口中操作iframe:$(window.frames["iframeChild"].document) //假如iframe的i 阅读全文

posted @ 2011-01-10 11:49 哲 思 阅读(15990) 评论(1) 推荐(0) 编辑