摘要: TreeView加载:数据库部分:TreeView 完全加载显示:代码清单://前台 //====================================后台namespace WebFileUp{ publicpartialclass WebFormTreeview : System.Web.UI.Page { DataTable dt =new DataTable(); protectedvoid Page_Load(object sender, EventArgs e) ... 阅读全文
posted @ 2011-04-13 09:34 高兴happy 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 效果如图:首先允许排序:AllowSorting="True";开启gridview的排序事件onsorting="GridView1_Sorting",也可以双击sorting事件;其次是设置nrowdatabound="GridView1_RowDataBound",也可以双击GridView1_RowDataBound关联排序表达式SortExpression="字段名称"代码明细:前台代码:View Code 无标题页 ... 阅读全文
posted @ 2011-04-12 11:04 高兴happy 阅读(11137) 评论(0) 推荐(1) 编辑
摘要: 如图: 全选checkbox Js全选checkbox 遍历所有checkboxView Code function SelectAllCheckboxes(spanChk) { var oItem = spanChk.children; var theBox = (spanChk.type =="checkbox") ? spanChk : spanChk.children.item[0]; xState = theBox.checked; ... 阅读全文
posted @ 2011-04-09 22:17 高兴happy 阅读(2369) 评论(2) 推荐(0) 编辑
摘要: jquery常用技巧及常用方法列表1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的,调用方法时要注意操作的是dom对象还是 jquery对象。普通的dom对象一般可以通过$()转换成jquery对象。如:$(document.getElementById(“msg”))则为jquery对象,可以使用jq 阅读全文
posted @ 2011-04-06 16:45 高兴happy 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 显示效果如图:先建立xml文件sa.xmlView Code - - - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 - Hide your heart Bonnie Tyler UK CBS Records 9.90 1988 - Greatest Hits Dolly Parton USA RCA 9.90 1982 - Still got the blues Gary Moore UK Virgin records 10.2... 阅读全文
posted @ 2011-04-06 16:12 高兴happy 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 邮件发送必须是邮箱开启pop3服务和smtp服务 MailMessage类: 表示可以使用 SmtpClient 类发送的电子邮件。 SmtpClient: 允许应用程序使用简单邮件传输协议 (SMTP) 来发送电子邮件。 阅读全文
posted @ 2011-04-06 11:21 高兴happy 阅读(395) 评论(0) 推荐(1) 编辑
摘要: 一:tab效果显示无标题页 登录注册登录注册登录内容注册内容二:Tab效果和动态加载View Code 百度 博客园 好123 163 ... 阅读全文
posted @ 2011-04-05 23:03 高兴happy 阅读(5687) 评论(0) 推荐(1) 编辑
摘要: 1,验证文本框中的值是不是数字,并且设置数字大小范围View Code function fx() { var o = document.getElementById("txt_finsh").value; if (isNaN(o)) { alert("请输入如数字"); document.getElementById("txt_finsh").focus() } else { if (parseInt(o) >100... 阅读全文
posted @ 2011-03-29 11:51 高兴happy 阅读(1625) 评论(0) 推荐(1) 编辑
摘要: 第一步先上页面上托一个dropdownlist控件前台 后台先写一个返回dataset的方法/// /// 绑定dropdownlist信息 /// ///public DataSet Drop() { using (SqlConnection conn =new SqlConnection(ConfigurationManager.ConnectionStrings["learning"].ConnectionString)) { conn.Open(); ... 阅读全文
posted @ 2011-03-28 18:15 高兴happy 阅读(665) 评论(1) 推荐(0) 编辑
摘要: 实际应用中相信很多人会有这样的烦恼,数据表中的数据是这样显示的:但是我们往往要遍历显示将每行数据都做处理最后在一个字段中显示出来例如我的例子是将每个字段都显示成超链接最后在一起显示出来:代码示例View Code declare@namenvarchar(max)beginset@name=''--注:必须初始化为空select@name=@name+''from ExamMainendselect@name 阅读全文
posted @ 2011-03-24 11:24 高兴happy 阅读(348) 评论(0) 推荐(0) 编辑