摘要: $(document).ready(function(){$(“#scrollDiv”).textSlider({line:4,speed:500,timer:3000});}); line:滚动几行;speed:滚动速度;timer:自动滚动间隔;演示地址:http://www.css88.com/demo/textSlider/textSlider.html下载地址:http://www.cs... 阅读全文
posted @ 2012-06-21 14:20 Setme 阅读(4965) 评论(0) 推荐(1) 编辑
摘要: IndexOf-搜索函数 int String.IndexOf(string value); 返回字符串中第一次出现子字符串的字符位置,从0开始,未找到子字符串返回-1。 int String.IndexOf(string value,int startIndex); 同上,但是从字符串的startIndex位置开始搜索,一直到字符串末尾。 int String.IndexOf(string v... 阅读全文
posted @ 2012-06-19 15:33 Setme 阅读(2691) 评论(0) 推荐(0) 编辑
摘要: 解析HTML结构。 加载外部脚本和样式表文件。 解析并执行脚本代码。 构造HTML DOM模型。 加载图片等外部文件。 页面加载完毕。 加载顺序实例: <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Title</title> <style type="text/css"> ... 阅读全文
posted @ 2012-06-07 16:33 Setme 阅读(6804) 评论(0) 推荐(2) 编辑
摘要: <asp:Button ID="buttonSelect" runat="server" Text="button"/> 目前已知办法: 1、可通过位置方式获取: $("input[type=submit]").eq(第几个位置); 2、可通过控件ID获取: $("[id$=buttonSelect]"); 3、可通过DOM节点方式获取 阅读全文
posted @ 2012-06-06 09:22 Setme 阅读(280) 评论(0) 推荐(0) 编辑
摘要: @ Master:定义 ASP.NET 页分析器和编译器使用的特定于母版页(.master 文件)的属性。详见MSDN相关属性。 1.创建简单的嵌套母版页首先创建一个母版页做主母版页,再新建一个母版页,并选择主母版页为其母版,则完成嵌套,主要应用于主网站中嵌套分类母版。 2.访问母版页上的控件Master:获取嵌套母版页方案中当前母版页的父级母版页FindControl:在当前的命名容器中搜索带指... 阅读全文
posted @ 2012-06-05 18:40 Setme 阅读(261) 评论(0) 推荐(1) 编辑
摘要: Response.ContentType = "application/octet-stream";Response.AppendHeader("Content-Disposition", "attachment; filename=xxx.mht"); 阅读全文
posted @ 2012-06-05 18:37 Setme 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Codeusing System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;u... 阅读全文
posted @ 2012-06-05 18:36 Setme 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: private static string TextFromFile() { string sLine = ""; using (StreamReader objReader = new StreamReader(HttpContext.Current.Server.MapPath("Default.aspx"), System.Text.Encodin... 阅读全文
posted @ 2012-06-05 18:33 Setme 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 无法获得控件说明是母版页与内容页事件顺序问题。div.Controls.Add(ck);之后去查找应该是可以找到的 aspx: <div id="DIVcheck" runat="server"></div>CS:protected void CheckDataBind(){ DataSet ds = ActionBLL.GetAllList(); D... 阅读全文
posted @ 2012-06-05 18:23 Setme 阅读(191) 评论(0) 推荐(0) 编辑
摘要: private void GetControls(Control c)//c需要遍历查找的父控件{ if (c is HyperLink) { Response.Write(c.ID + "<br />"); return; } if (c.HasControls()) foreach (Control con in ... 阅读全文
posted @ 2012-06-05 18:21 Setme 阅读(159) 评论(0) 推荐(0) 编辑