随笔分类 - Web
[转] asp.net <%%>&<%#%>&<%=%>&<%@%>&<%$%>用法区别
摘要:转自 参考 1.<% %>用来绑定后台代码 如: < % for(int i=0;i<100;i++) { Reaponse.Write(i.ToString()); } %> 2.<%# %> 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: < %# Container.Da
阅读全文
Web TreeView 加载级联数据
摘要:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { dt = BLL.GetTable(); LoadLYRProperties(0, null); ...
阅读全文
弹跳是不是自由落体?
摘要:// 174 ? 175 : high; callback(high); }, delay); } window.onload = function () { a = document.getEl...
阅读全文
普通按钮的另一种提交方式(调用后台事件)
摘要:后台: protected void ibtnRegedit_Click(object sender, ImageClickEventArgs e) { if (!Page.IsValid || !CheckVCode()) retu...
阅读全文
AJAX简单的数据增删改与分页应用
摘要:运行截图: PageBar.js: 1 /* 2 * 说明: 3 * 整体思想,1.第一页时不显示:首页,上一页, 4 * 2.最后一页时不显示:下一页,尾页 5 * 3.中间有 5 页导航, 6 * 若:3.1.(总页数<5),就显示多少, 7 * 3.2.(总页数>5),点击页码值 <=3 背景
阅读全文
new XMLHttpRequest()和页面关系
摘要:1. 三个页面分别对应"自己“的异步对象(3个) //另外两个页面类似。 public void ProcessRequest(HttpContext context) { context.Response.ContentType = ...
阅读全文
省市联动初探AJAX操作数据
摘要:主要学习代码:List.html 省: 市:List.ashx:using System;using System.Web;using System.Collections.Generic;//List//序列化命名空间using System.Web.Script.Se...
阅读全文
WEB简单数据操作练习
摘要:主要学习代码: Login.aspx: Login.aspx.cs List.aspx List.aspx.cs Modify.aspx.cs Edit.aspx Edit.aspx.cs Web.BAL Web.Model 项目文件:http://pan.baidu.com/s/1dDf5mlb
阅读全文
ASP.NET的一般处理程序对图片文件的基本操作
摘要:以一个小项目为例: 验证码: ashx文件: html调用: 上传文件: html文件: 下载文件: html: 相关项目文件:http://pan.baidu.com/s/1eQmopOm
阅读全文
ASP.NET的一般处理程序对数据的基本操作
摘要:TableList.ashx: DataList.html: Add.ashx: Delete.ashx: Modify.ashx: OperationModel.html: CommonHelper.cs: Web.config: 三层代码可以参考前几篇的文章。项目文件:http://pan.ba
阅读全文
网页中评分效果原理。
摘要:哈哈,只是简单的原理(代码可能不是这样写的),明白原理就好~~~~~ ☆ ☆ ☆ ☆ ☆ 百度浏览器效果图:JQuery代码: ☆☆☆☆☆☆ jquery-1.7.1.js文件官网:http://jquery.com/download/
阅读全文