随笔 - 106  文章 - 0  评论 - 1  阅读 - 40962
12 2017 档案
Repeater 控件
摘要:Repeater1.ItemCommand += Repeater1_ItemCommand; //可以调用Repeater中控件的事件 CommandName:获取命令(控件)的名称; CommandArgument:获取命令(控件)的参数; 阅读全文
posted @ 2017-12-29 09:12 段了的弦 阅读(122) 评论(0) 推荐(0) 编辑
webform母版页
摘要:母板可以由其他web窗体引用,类似于套模板,方便使用; <asp:ContentPlaceHolder id="head" runat="server"></asp:ContentPlaceHolder> //母版页中预留位置,里面不能输入任何东西; <asp:Content ID="Content 阅读全文
posted @ 2017-12-28 11:21 段了的弦 阅读(249) 评论(0) 推荐(0) 编辑
ajax
摘要:ajax 特点:无刷新,异步 json 键值对 {"key":"value","":""} - json对象 [{"":"","":""},{"":"","":""}] -json数组 JQuery ajax dataType:"text" 可以设置返回数据的类型,text为字符串类型 async: 阅读全文
posted @ 2017-12-26 12:52 段了的弦 阅读(127) 评论(0) 推荐(0) 编辑
JQuery !!!
摘要:选择器: ID选择器、class选择器、标签选择器、 $(".a:eq(0)") 首个:first 尾个:last 大于:gt 小于:lt 排除:not 奇数:odd 偶数:even 属性名过滤:[属性名] 、 按属性名值过滤:[属性名=值]、[属性值!=值] 内容过滤:文字 :contains(" 阅读全文
posted @ 2017-12-24 16:46 段了的弦 阅读(192) 评论(0) 推荐(0) 编辑
Javascript !!!
摘要:基础语法:与C#一致数据类型及类型转换var (string,decimal)parseInt()parseFloat();isNaN(); --判断是不是实数 运算符:数学运算符:+ - * / ++ -- %关系运算符:== != >= <= > < 逻辑运算符:&& || !其他运算符:+= 阅读全文
posted @ 2017-12-24 12:28 段了的弦 阅读(236) 评论(0) 推荐(0) 编辑
webform 内置对象。传值
摘要:Session cookie 存在位置 服务器 浏览器 存在周期 20分钟 20分钟 存放类型 object(任意类型) 字符串 赋值 Session["a"]=object Response.cookies["a"].value="a" 取值 Textbox.Text=Session["a"].T 阅读全文
posted @ 2017-12-19 11:04 段了的弦 阅读(125) 评论(0) 推荐(0) 编辑
webform传值
摘要:单页面传值: <input type="button" class="shanchu" data-id="<%#Eval("ids") %>" data-name="<%#Eval("name") %>" value="删除" /> --设置属性 var shanchu = document.get 阅读全文
posted @ 2017-12-19 08:55 段了的弦 阅读(148) 评论(0) 推荐(0) 编辑
webform控件以及使用
摘要:文本类: <input type="text"/> <input type="password"/> --textmode="password" <textarea></textarea> --textmode="multline' <input type="hidden"/> 按钮类: <inpu 阅读全文
posted @ 2017-12-17 21:57 段了的弦 阅读(457) 评论(0) 推荐(0) 编辑
webform 基础
摘要:Repeater的使用: -AutoPostBack="true" --此属性才可在后台调用DropDownList的方法 if (IsPostBack == false) 仅第一次加载有效 </AlternatingItemTemplate> --交替绑定数据 document.getElemen 阅读全文
posted @ 2017-12-17 11:08 段了的弦 阅读(155) 评论(0) 推荐(0) 编辑
LINQ 语句实现分页
摘要:表名为people; int a=10; --每页放10行数据; 构造函数内: 查询最大页数: 上一页按钮: 下一页按钮: 阅读全文
posted @ 2017-12-14 12:40 段了的弦 阅读(367) 评论(0) 推荐(0) 编辑
LINQ to SQL 语句
摘要:新建 LINQ to SQL类 ,选择数据库,自动生成类; using(DBDataContext con=new DBDataContext()) 表名为people 增:con.people.InsertOnSubmit(object); con.SubmitChanges(); con.Ins 阅读全文
posted @ 2017-12-14 11:49 段了的弦 阅读(153) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示