上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
  2012年11月5日
摘要: 简单的一个例子,留着备用:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="520" height="292" id="FLVPlayer"> <param name="movie" v 阅读全文
posted @ 2012-11-05 02:16 LitDev 阅读(1294) 评论(0) 推荐(0) 编辑
  2012年10月22日
摘要: 废话不说,拣重点。html页面:<tr><td>所在国家:<select name="sCountry" id="sCountry"></select></td></tr><tr><td>所在地区:<select name="sProvince" id="sProvince"></select><select name="sCity" id="sCity&quo 阅读全文
posted @ 2012-10-22 16:57 LitDev 阅读(4862) 评论(1) 推荐(2) 编辑
  2012年9月25日
摘要: 问题如Title,首先查询返回的数据类型是DataSet,并且在SQL语句的查询中对字段进行了取别名(as XX),所以页面取数据时会提示某字段不存在表(实例化的DataSet)中解决方法:把查询的数据防到DataTable中返回,这样就没错了 阅读全文
posted @ 2012-09-25 16:09 LitDev 阅读(520) 评论(0) 推荐(0) 编辑
  2012年9月10日
摘要: html页面:<html><head><title></title><script type="text/javascript"> //增加Cookie function SaveCookie() { var cname=document.forms[0].txtcookiename.value; var cvalue = document.forms[0].txtcookievalue.value; var ctime=document.forms[0].txtcookietime.value; var ms = 阅读全文
posted @ 2012-09-10 16:54 LitDev 阅读(305) 评论(0) 推荐(0) 编辑
  2012年9月6日
摘要: 前台页面:<a href='?add=<%# Eval("UserID") %> ' onclick="return Confi()" id="addhref"></a>后台Page_Load方法中:if (!string.IsNullOrEmpty(Request.Params["add"])) //添加好友 { string ID = Convert.ToString(Request.Params["add"]); try { if (!s 阅读全文
posted @ 2012-09-06 15:53 LitDev 阅读(521) 评论(0) 推荐(0) 编辑
  2012年8月29日
摘要: JS代码:// 日期选择var months = new Array("一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"); var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30 阅读全文
posted @ 2012-08-29 15:27 LitDev 阅读(4381) 评论(2) 推荐(0) 编辑
  2012年8月21日
摘要: 首先看下XML文件的结构:<?xml version="1.0" encoding="utf-8" ?><List> <Item id="81" country="Japan"></Item> <Item id="852" country="香港特别行政区"></Item> <Item id="886" country="台灣"></Item> 阅读全文
posted @ 2012-08-21 14:36 LitDev 阅读(278) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 验证用户是否已经登录 /// </summary> public void IsLogin() { if (!SessionIsExistence("userid")) //判断Session是否存在 { System.Web.HttpContext.Current.Response.Write("<script>parent.location.href='" + System.Web.HttpContext.Curre... 阅读全文
posted @ 2012-08-21 14:17 LitDev 阅读(594) 评论(0) 推荐(0) 编辑
  2012年8月18日
摘要: 注:封装数据绑定控件(如 System.Web.UI.WebControls.DataGrid、System.Web.UI.WebControls.GridView、System.Web.UI.WebControls.DetailsView // 和 System.Web.UI.WebControls.FormView)的与分页相关的属性,以允许该控件执行分页操作。无法继承此类。DataListpublic DataTable GetDataSet(string sql) { SqlConnection conn = this.getconn(); ... 阅读全文
posted @ 2012-08-18 18:05 LitDev 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 1: <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('是否删除')" OnClick="Del" >删除</asp:LinkButton>//修改同理2:在后台中添加删除方法 public void Del(object sender,EventArg 阅读全文
posted @ 2012-08-18 18:00 LitDev 阅读(2202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页