摘要: 前台容器Repeater的关键代码:<!--列表展示.开始--> <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound"> <HeaderTemplate> <table width="100%" border="0" cellspacing="0 阅读全文
posted @ 2012-11-06 12:10 东北大亨 阅读(253) 评论(0) 推荐(0)
摘要: 第二个例子也是基于第一个例子改写的:<!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"><head><meta http-equiv="Content-Type" content="text/ 阅读全文
posted @ 2012-11-06 11:42 东北大亨 阅读(145) 评论(0) 推荐(0)
摘要: jquery的第一个程序。在官网:http://jquery.com/ 中下载了jquery-1.3.1.js。在粘贴代码之前先上传下我的学习文件包图如下:第一个程序代码如下:<!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 @ 2012-11-06 11:25 东北大亨 阅读(193) 评论(0) 推荐(0)
摘要: 因为个人爱好最近对Jquery比较感兴趣,对此开始学习。如果有志同道合的我们一起努力。 阅读全文
posted @ 2012-11-06 11:11 东北大亨 阅读(107) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-11-06 10:14 东北大亨 阅读(339) 评论(0) 推荐(0)
摘要: <?xml version="1.0"?><!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的 “网站”->“Asp.Net 配置”选项。 设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 \Windows\Microsoft.Net\Framework\v2.x\Config 中--><configuration> <!-- appSettings网站信息配置--> <appSetting 阅读全文
posted @ 2012-11-05 14:11 东北大亨 阅读(351) 评论(0) 推荐(0)
摘要: 我写的可能不是大家所需要的但希望对大家有所帮助。前台代码:<asp:Repeater> <HeaderTemplate><table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable"> <tr> <th width="6%" align="left">选择</th><tr>< 阅读全文
posted @ 2012-10-29 11:23 东北大亨 阅读(194) 评论(0) 推荐(0)
摘要: 下面介绍下字符串的格式化:// 先定义一个可变的数组StringBuilder str = new StringBuilder();String para1= "1";String para1= "2";String para1= "3";str.AppendFormat(" {0} ,", para1); str.AppendFormat(" {0} ,", para2); strSqlWhere.AppendFormat(" {0} ", para3); 以上的就是对一个 阅读全文
posted @ 2012-10-29 11:12 东北大亨 阅读(211) 评论(0) 推荐(0)
摘要: 以前写过正则表达式的验证。这次项目用到了:因为用到的不多,用到了多少就写多少以后在添加。<asp:TextBox ID="txtStartID" runat="server" CssClass="txtInput small required digits" maxlength="10"></asp:TextBox> <asp:regularexpressionvalidator id="RegularExpressionValidator2" runat=&quo 阅读全文
posted @ 2012-10-29 11:07 东北大亨 阅读(270) 评论(0) 推荐(0)
摘要: 由于项目需要自己写了一个字符串分割实现代码以下: #region 分割字符串 /// <param name="strContent">分割前字符串</param> /// <param name="strSplit">分割字符</param> /// <returns>返回分割后的数组</returns> public static string[] SplitString(string strContent, string strSplit) { if (!string.IsNu 阅读全文
posted @ 2012-10-29 11:02 东北大亨 阅读(147) 评论(0) 推荐(0)