摘要: <asp:DataList ID="DataList1" runat="server" CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" Width="243px" oncancelcommand="DataList1_CancelCommand" ondeletecommand="DataList1_DeleteCommand" onedit 阅读全文
posted @ 2011-12-01 22:22 幻想时空 阅读(7877) 评论(1) 推荐(0) 编辑
摘要: public void ProcessRequest (HttpContext context) { context.Response.ContentType = "image/jpeg"; //url传来的图片名 string img = context.Request.QueryString["img"]; if (!string .IsNullOrEmpty(img)) { //获取图片的物理路径 string path = context.Request.MapPath("... 阅读全文
posted @ 2011-12-01 22:15 幻想时空 阅读(445) 评论(0) 推荐(0) 编辑
摘要: #region +AJAX获得功能页码条 /// <summary> /// AJAX获得功能页码条 /// </summary> /// <param name="funName">js方法名</param> /// <param name="allrecord">全部记录条数</param> /// <param name="allpage">全部页面数</param> /// <param name="curpage& 阅读全文
posted @ 2011-12-01 21:59 幻想时空 阅读(235) 评论(0) 推荐(0) 编辑
摘要: function MsgBox(s) {//{imghref:图片文件夹所在路径,waitImg:等待图片名,bgImg:背景图片名} var secondConst = 2000;//系统默认显示时间 var secondWait = 2000;//显示时间 var timer;//计时器 var lf, tp;//左边距,顶边距 var paras = {}; //json参数 function readyMsgBox() { if (s != null){ if (s.imghref != null) paras.i... 阅读全文
posted @ 2011-12-01 21:31 幻想时空 阅读(3441) 评论(0) 推荐(0) 编辑
摘要: //使用浏览器兼容的方式创建 异步对象function createXhr() { var xhobj = false; try { xhobj = new ActiveXObject("Msxml2.XMLHTTP"); // ie msxml3.0+ } catch (e) { try { xhobj = new ActiveXObject("Microsoft.XMLHTTP"); //ie msxml2.6 } catch (e2) { xhobj = false; }... 阅读全文
posted @ 2011-12-01 21:29 幻想时空 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: tbObj = gel("tbList");//获取表格对象//参数是后台返回的数据长度 function createTableTr(jsonArr) { var arrLength = jsonArr.length; for (var i = 0; i < arrLength; i++) { var json = jsonArr[i]; //在表格最后追加一个行对象 var newRow = tbObj.insertRow(-1); ... 阅读全文
posted @ 2011-12-01 21:24 幻想时空 阅读(4908) 评论(0) 推荐(0) 编辑
摘要: cs://repeater的databound事件 protected void RptBig_ItemDataBound(object sender, RepeaterItemEventArgs e) { //此处必须做判断,不然下面获取数据会报没有实例化或者为空 if (e.Item.ItemType== ListItemType.Item||e.Item.ItemType== ListItemType.AlternatingItem) { Repeater rptSma... 阅读全文
posted @ 2011-12-01 20:38 幻想时空 阅读(1442) 评论(0) 推荐(0) 编辑
摘要: c#中结构和类,如何使用, 阅读全文
posted @ 2011-09-26 12:25 幻想时空 阅读(285) 评论(0) 推荐(0) 编辑