| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1131 人关注过本帖
标题:请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量谢谢
只看楼主 加入收藏
yjitx2012
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2013-5-25
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:9 
请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量谢谢
<%@ 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>
搜索更多相关主题的帖子: content 编程 Microsoft title 
2013-05-25 12:43
雪狼MJ
Rank: 8Rank: 8
来 自:甘肃
等 级:蝙蝠侠
威 望:4
帖 子:267
专家分:853
注 册:2012-5-27
收藏
得分:5 
javascript的怎么跑这里了?

Edsger Dijkstra:算法+数据结构=程序
2013-05-25 13:22
yjitx2012
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2013-5-25
收藏
得分:0 
回复 2楼 雪狼MJ
不好意思,我是统新手,能帮忙解决一下吗
2013-05-25 13:25
我叫沃恩
Rank: 12Rank: 12Rank: 12
来 自:Asia
等 级:贵宾
威 望:10
帖 子:1234
专家分:3865
注 册:2013-3-29
收藏
得分:5 
换个板块去问问吧!我还没学,不知啊!!

因为我是菜鸟,所以应该被骂! 细节+坚持=成功!
2013-05-25 13:51
雪狼MJ
Rank: 8Rank: 8
来 自:甘肃
等 级:蝙蝠侠
威 望:4
帖 子:267
专家分:853
注 册:2012-5-27
收藏
得分:0 
去java区吧,那里是专业的。

Edsger Dijkstra:算法+数据结构=程序
2013-05-25 13:53
xhd504070596
Rank: 2
等 级:论坛游民
帖 子:12
专家分:11
注 册:2013-5-24
收藏
得分:5 
如果这是C -0-我一年课白上了
2013-05-25 15:14
邓士林
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:淮河河畔
等 级:贵宾
威 望:61
帖 子:2392
专家分:13384
注 册:2013-3-3
收藏
得分:5 
没看懂你的意思,我给你看看

Maybe
2013-05-25 17:00
yjitx2012
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2013-5-25
收藏
得分:0 
回复 8楼 邓士林
帮我看看,里面有没有限制数据数量的语句
2013-05-25 17:21
volte
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:69
帖 子:1167
专家分:1316
注 册:2004-12-19
收藏
得分:0 
这个代码都不全啊!

大家都是朋友,有空就来坐坐!
2013-05-31 14:48
努力吼
Rank: 2
等 级:论坛游民
帖 子:64
专家分:51
注 册:2012-11-12
收藏
得分:0 
映入眼帘的是一堆服务器控件

新手上路,多多帮助。。。嘿嘿
2013-05-31 16:54
快速回复:请编程前辈高手帮帮我,帮我看一下这一篇源码哪个地方限制了数据的数量 ...
数据加载中...
 
   



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

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