上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 73 下一页
摘要: 1.使用集合:添加三个类Animal.cs Cow.cs Chiken.csAnimal.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace collection 7 { 8 public abstract class Animal 9 {10 protected string name;11 12 public string Name13 {14 ... 阅读全文
posted @ 2012-06-18 16:43 【唐】三三 阅读(236) 评论(0) 推荐(0)
摘要: 转自清清月儿gridview72绝技,略有改动 前台:唯一的花头就是设置ShowFooter="True" private double sum = 0;//取指定列的数据和,你要根据具体情况对待可能你要处理的是intprotected void GridView1_RowDataBound(obj 阅读全文
posted @ 2012-06-07 16:05 【唐】三三 阅读(254) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/Jinglecat/archive/2007/07/18/823201.htmldemo:http://files.cnblogs.com/Jinglecat/DEMO12_CheckBoxListSingleCheck.rar一看标题估计大家都开始怀疑了:单选?为什么不直接使用 RadioButtonList ? 是的。你是对的。然而,实际应用中需求千变万化,谁让我们的客户够 BT 呢? 主要代码 只有一个通用的 CheckBoxList_Click 函数, 需要注意的是 CheckBoxList 可以呈... 阅读全文
posted @ 2012-06-04 14:45 【唐】三三 阅读(2419) 评论(1) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataSet ds1 = new BLL.Department_Info().GetAllList(); th... 阅读全文
posted @ 2012-06-04 11:17 【唐】三三 阅读(244) 评论(0) 推荐(0)
摘要: ADO.NET的名称起源于ADO(ActiveX Data Objects),这是一个广泛的类组,用于在以往的Microsoft技术中访问数据.之所以使用ADO.NET名称,是因为Microsoft,希望表明,这是在.NET编程环境中优先使用的数据访问接口. 它提供了平台互用性和可伸缩的数据访问。A 阅读全文
posted @ 2012-06-01 22:32 【唐】三三 阅读(401) 评论(0) 推荐(0)
摘要: 今天在用Windows Server 2008的IIS7.5部署ASP.NET4.0项目出现“HTTP错误,500.23,Internal Server Error 检测到在集成的托管管道模式下不适用的ASP.NET设置”。 网上搜索答案后,需要将应用程序池改为经典模式,如下 但是,改为经典模式后,却出现了另一个错误。。。如下图: 这个错误是说ISAPI... 阅读全文
posted @ 2012-06-01 16:45 【唐】三三 阅读(2126) 评论(0) 推荐(0)
摘要: //设置单元格为文本格式 gridView.Rows[i].Cells[32].Attributes.Add("style","vnd.ms-excel.numberformat:@"); 阅读全文
posted @ 2012-05-31 16:15 【唐】三三 阅读(349) 评论(0) 推荐(0)
摘要: 1 <%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation = "false" CodeFile="DropDownLIst.aspx.cs" Inherits="_20100608_Default" %> 2 3 <% 阅读全文
posted @ 2012-05-28 23:47 【唐】三三 阅读(988) 评论(0) 推荐(0)
摘要: 1 <script type="text/javascript" language="javascript"> 2 function CheckDropDownList() { 3 var dropDownList = document.getElementById("<%=DropDownListID.ClientID %>"); //获取DropDownList控件 4 var dropDownListValue = dropDownList.options[dropDownList.selectedInd 阅读全文
posted @ 2012-05-28 16:32 【唐】三三 阅读(1639) 评论(0) 推荐(0)
摘要: 1 <asp:TemplateField HeaderText="是否发放" SortExpression="YesNo"> 2 <ItemTemplate> 3 <asp:DropDownList ID="ddl_YesNo" runat="server" DataSource='<%# ddlb 阅读全文
posted @ 2012-05-23 23:57 【唐】三三 阅读(353) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 73 下一页