摘要: 1.判断select选项中 是否存在Value="paraValue"的Item 2.向select选项中 加入一个Item 3.从select选项中 删除一个Item 4.修改select选项中 value="paraValue"的text为"paraText" 5.设置select中text="paraText"的第一个Item为选中 6.设置select中value="paraValue"... 阅读全文
posted @ 2008-08-25 11:07 lhy17020 阅读(604) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//原创aloxy //2007.12.19 //本地路径转换成URL相对路径 private string urlconvertor(string imagesurl1)... 阅读全文
posted @ 2008-08-21 10:01 lhy17020 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 增加GridView的GVSelect_RowDataBound事件 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protectedvoid GVSelect_RowDataBound(object sender, GridView... 阅读全文
posted @ 2008-08-20 15:31 lhy17020 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 就是GridView的GridLines属性,将其设置为"none"即可! Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-08-20 15:29 lhy17020 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1.datetime 当前时间默认值:(getdate()) 阅读全文
posted @ 2008-08-20 14:25 lhy17020 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->if ((e.Row.RowType == DataControlRowType.DataRow) || (e.Row.RowType == DataControlRowType.Header)... 阅读全文
posted @ 2008-08-18 11:30 lhy17020 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1、 response.redirect 这个跳转页面的方法跳转的速度不快,因为它要走2个来回(2次postback),但他可以跳 转到任何页面,没有站点页面限制(即可以由雅虎跳到新浪),同时不能跳过登录保护。但速度慢是其最大缺陷!redirect跳转机制:首先是发送一个http请求到客户端,通知需要跳转到新页面,然后客户端在发送跳转请求到服务器端。需要注意的是跳转后内部空间保存的所有数据信息将会... 阅读全文
posted @ 2008-08-18 10:37 lhy17020 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->第一步生成验证码 新增一个ValidateCode.aspx页面 在ValidateCode.aspx.cs的代码如下 using System; using System.Data;... 阅读全文
posted @ 2008-08-14 17:58 lhy17020 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1. document.formName.item("itemName") 问题 说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"]; Firefox下,只能使用document.formName.elements["elementName"]. 解决方法:统一使用docum... 阅读全文
posted @ 2008-08-14 17:51 lhy17020 阅读(207) 评论(1) 推荐(0) 编辑
摘要: /* ****************************************** 字符串函数扩充 ****************************************** */ /* ========================================... 阅读全文
posted @ 2008-08-14 17:49 lhy17020 阅读(384) 评论(0) 推荐(0) 编辑