摘要: <iframe width="100%" align="center" height="200" id="frame" name="frame" frameborder="0" scrolling="no" onload="Javascript:SetWinHeight(this)"></iframe>function SetWinHeight(obj) { var win... 阅读全文
posted @ 2010-08-27 20:36 天涯之巅 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: --------添加主键约束(bookid作为主键) alter table bookmessageadd constraint pk_bookid primary key(bookid) --------添加唯一约束 alter table bookmessageadd constraint uq_bookid UNIQUE(bookid) ---------添加默认约束 alter table... 阅读全文
posted @ 2009-09-03 16:29 天涯之巅 阅读(2025) 评论(0) 推荐(2) 编辑
摘要: 以下为原码(我调用的是本地的文件):<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><he... 阅读全文
posted @ 2009-08-27 20:29 天涯之巅 阅读(2723) 评论(0) 推荐(0) 编辑
摘要: 相信大家在网站开发过程中经常要在客户端对用户填写的表单进行验证,那么可以通过javascript来验证.下面介绍一下javascript框架jQuery表单插件的用法:一.下载jquery表单验证插件地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation/API:http://docs.jquery.com/Plugins/... 阅读全文
posted @ 2009-08-24 09:39 天涯之巅 阅读(3939) 评论(0) 推荐(0) 编辑
摘要: //这个方法将图片上传并返回路径其中:Server.MapPath("") :是得到当前的根目录private string uploadImg() { string name = FileUpload1.FileName; //获取已上传文件的名字 string size = FileUpload1.PostedFile.ContentLength.ToString(); //获取已上传文件的大... 阅读全文
posted @ 2009-08-24 08:35 天涯之巅 阅读(243) 评论(0) 推荐(0) 编辑
摘要: // JScript 文件function onmouseoutColor1(source){ source.style.backgroundColor='#fffbd6'; source.style.color='black';}function onmouseoverColor1(source){ source.style.backgroundColor='#C0C0FF'; source.s... 阅读全文
posted @ 2009-08-20 09:56 天涯之巅 阅读(843) 评论(0) 推荐(1) 编辑
摘要: 1. 模板页中的多选按钮操作以下代码数据库中字段为int 1:代表 true0:代表false在GridView中把它显示出来(注:此处的ToolTip只是为了在后台能得到当前数据的ID,在选中之后直接进行修改)<asp:CheckBox ID="CheckBox1" runat="server" ToolTip='<%# Eval("JY_ID") %>' Checked='&... 阅读全文
posted @ 2009-08-18 22:40 天涯之巅 阅读(316) 评论(1) 推荐(0) 编辑
摘要: http://imis.qq.com/webpresence/code.shtml腾讯提供的一个在线客服前提是用户必需添加客服目前只支持在线与不在线两种状态 阅读全文
posted @ 2009-08-16 19:43 天涯之巅 阅读(305) 评论(0) 推荐(0) 编辑