| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 695 人关注过本帖
标题:请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量谢谢
只看楼主 加入收藏
yjitx2012
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2013-5-25
结帖率:100%
收藏
已结贴  问题点数:10 回复次数:3 
请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量谢谢
<%@ Page language="c#" Codebehind="data_grid.aspx.cs" AutoEventWireup="True" Inherits="gzcx.aspx.data_grid" %>
<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../modules/Pager.ascx" %>
<HTML>
    <HEAD>
        <title></title>
        <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
        <meta content="C#" name="CODE_LANGUAGE">
        <meta content="JavaScript" name="vs_defaultClientScript">
        <LINK href="../../css/style.css" type="text/css" rel="stylesheet">
        <script language="JavaScript" src="../../js/Calendar.js" type="text/javascript"></script>
        <script language="JavaScript" src="../../js/common.js" type="text/javascript"></script>
        <script language="javascript" src="../../js/My97DatePicker/WdatePicker.js" defer type="text/javascript"></script>
        <script language="JavaScript">
              function chkSelected()
            {            
                var fm=document.forms[0];
                var ys=fm.Pager1_ddl_page.options[fm.Pager1_ddl_page.selectedIndex].text;    //表格当前页数            
                var hs=fm.Pager1_listRowNum.options[fm.Pager1_listRowNum.selectedIndex].text; //表格显示行数               
               
               
                var bRet = false;
                var dg = document.getElementById("gdv");
                var stemp="";
                var id="";

                var sid=document.getElementById("tb_s_id").value;
                var eid=document.getElementById("tb_e_id").value;
                if (sid==null||sid==""||isNaN(sid))
                {
                   alert("请输入正确起始序号!");
                   return false;
                }
                if (eid==null||eid==""||isNaN(eid))
                {
                   alert("请输入正确截止序号!");
                   return false;
                }
               
                var hdid=document.getElementById("hd_id").value;
                var arr=hdid.split(",");
   
                for(var i=2; i<=dg.rows.length; i++)
                {
                       id=dg.rows[i-1].cells[0].innerHTML;
                       if (parseInt(id)>=parseInt(sid)&&parseInt(id)<=parseInt(eid))
                       {
                           if (stemp=="")
                        {
                           stemp=arr[id-(ys-1)*hs-1];
                        }
                        else
                        {
                           stemp+=","+arr[id-(ys-1)*hs-1];
                        }
                        bRet = true;
                    }
                }
                if (stemp=="")
                  return false;
                document.getElementById("hd_temp_id").value=stemp;
                return bRet;
            }
        </script>

    </HEAD>
    <body >

        <form id="Form1"  runat="server">
            <br><table id="Table4" align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
                <tr>
                    <td colspan="3">
                        <table id="Table5" border="0" cellpadding="0" cellspacing="1" class="sys_grid"  width="100%">
                            <tr>
                                <td align="left" class="sys_head_cell"><IMG src="../../Image/search.gif" align="absMiddle">
                                    员工工资信息</td>
                            </tr>
                            <tr>
                                <TD class="sys_grid_cell_label" align="left"  colSpan="2" height="25">
                                    &nbsp;<asp:DropDownList ID="ddl_model" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_model_SelectedIndexChanged" >
                                    </asp:DropDownList>
                                    <asp:dropdownlist id="ddl_tj" runat="server">
                                                <asp:ListItem Value="p.per_id">工号</asp:ListItem>
                                                <asp:ListItem Value="p.per_name">员工姓名</asp:ListItem>
                                                <asp:ListItem Value="d.dept_name">部门</asp:ListItem>
                                    </asp:dropdownlist><asp:textbox id="tb_value" runat="server" Width="100px"></asp:textbox>&nbsp;<asp:Label
                                        ID="Label1" runat="server" Text="部门:"></asp:Label>
                                    <asp:DropDownList ID="ddl_dept" runat="server" Width="115px" AutoPostBack="True" OnSelectedIndexChanged="ddl_dept_SelectedIndexChanged"/>      
                                   
                                    <asp:Label ID="Label2" runat="server" Text="年月:"></asp:Label>
                                    <input id="txtsdate" runat="server" class="stringedit" name="txtsdate" onfocus="WdatePicker({dateFmt:'yyyy-M'})"
                                        size="15" style="height: 22px" type="text" />
                                    <asp:button id="bntQuery" runat="server" Text=" 查询 " CssClass="sys_button" onclick="bntQuery_Click"  
Width="39px"></asp:button>&nbsp;<asp:button id="Button1" runat="server" Text="导出数据" CssClass="sys_button" OnClick="Button1_Click"></asp:button>
                                    <asp:Button ID="btn_model" runat="server" CssClass="sys_button" Text="导出工资模版" OnClientClick="javascript:Totemplate('gdv')"  
ForeColor="Red" Font-Bold="True" OnClick="btn_model_Click"  /></TD>
                            </tr>
                            </table>                           
                            <asp:GridView ID="gdv" runat="server" AllowPaging="True" AllowSorting="True"
                        CssClass="sys_grid" OnRowDataBound="gdv_RowDataBound"   Width="100%" ShowFooter="True" >
                        <HeaderStyle CssClass="sys_grid_head_cell" />
                        <PagerSettings Visible="False" />
                        <RowStyle HorizontalAlign="Center" Height="25px" />
                                <FooterStyle BackColor="#FFFFC0" />
                    </asp:GridView>    <uc1:pager id="Pager1" runat="server"></uc1:pager><INPUT id="hd" type="hidden" name="hd" runat="server">
                        </TD>
                    </TR>
            </TABLE>
        <br>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
                <tr>
                    <td colspan="3" style="height: 25px" align="right">
                        <asp:Label ID="Label3" runat="server" Text="批量删除记录: 序号从"></asp:Label>
                        <asp:TextBox ID="tb_s_id" runat="server" Width="40px"></asp:TextBox>
                        <asp:Label ID="Label4" runat="server" Text="至"></asp:Label>
                        <asp:TextBox ID="tb_e_id" runat="server" Width="40px"></asp:TextBox>
                        <asp:Button ID="btn_delete" runat="server" OnClick="btn_delete_Click" Text="确定删除"  OnClientClick="javascript: return chkSelected();" />
                        <INPUT id="hd_temp_id" type="hidden" name="hd_temp_id" runat="server" style="width: 9px">
                        <INPUT id="hd_id" type="hidden" name="hd_id" runat="server" style="width: 9px">
                        </td>
                </tr>
        </table>
        </form>
        <script language="javascript">
           var s='<%=url%>';
           if (s!='')
           {
               window.showModalDialog('<%=url%>','','dialogWidth:620px;dialogHeight:550px;help:no;status:no;dialogHide:yes;scrollbars:no');
              s='';
     window.location="data_gtj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value+"&ym="+document.getElementById
('txtsdate').value+"&model="+document.getElementById('ddl_model').value; rid.aspx?
           }         
            function OnRowClickRefresh(s1)
           
        </script>
    </body>
</HTML>

搜索更多相关
搜索更多相关主题的帖子: title Microsoft 编程 content 
2013-05-26 17:26
Kingbox_tang
Rank: 7Rank: 7Rank: 7
来 自:天津师范大学
等 级:黑侠
威 望:3
帖 子:146
专家分:677
注 册:2012-11-27
收藏
得分:5 
同学呀,你好歹也加几个注释吧
这样怎么看得懂?

旨在提高编程水平,学有所用,学有所成,学有所为。
2013-05-26 20:01
yjitx2012
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2013-5-25
收藏
得分:0 
我的一个程序上传数据上传到一定的数量时就报超出了限制数量
2013-05-26 21:59
w527705090
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:11
帖 子:441
专家分:1882
注 册:2011-6-28
收藏
得分:5 
这是java论坛...你提的问题是关于c#的...

有心者,千方百计;无心者,千难万难。
2013-05-27 01:01
快速回复:请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021547 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved