日期:2014-05-20  浏览次数:20960 次

extaspnet中的Grid的点击事件怎么跳到后台去
就是我在Grid中的Toolbars放置了一个button,点击的时候我想要跳转到后台进行处理数据 怎么做?在线等
------最佳解决方案--------------------
引用:
来个人啊 让我结束贴子也好啊

------其他解决方案--------------------
来个人啊 让我结束贴子也好啊
------其他解决方案--------------------
前台是这样的
  <ext:Grid ID="Grid1" runat="server"  
        Title="数据显示" DataKeyNames="stuId"   AllowPaging="true" PageSize="5" 
         AutoPostBack="true" 
        onrowcommand="Grid1_RowCommand" onpageindexchange="Grid1_PageIndexChange">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Label ID="lbl1" runat="server"  Text="学生姓名">
                    </ext:Label>
                    <ext:TextBox ID="tb1" runat="server" Label="Label" Text="">
                    </ext:TextBox>
                    <ext:Button ID="btn1" runat="server" Text="查询">
                    </ext:Button>
                    <ext:Button ID="AddBtn" Text="添加" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
        <ext:BoundField DataField="stuId" HeaderText="学生编号" />
        <ext:BoundField DataField="stuName" HeaderText="学生姓名" />
        <ext:BoundField DataField="stuAge" HeaderText="学生年龄" />
        <ext:WindowField WindowID="WinEdi" DataIFrameUrlFields="stuId" DataIFrameUrlFormatString="Addstu.aspx?stuId={0}" DataWindowTitleField="stuName" DataWindowTitleFormatString="需要修改的人员:{0}" Text="编辑" HeaderText="编辑" Icon="Layout" />
        <ext:LinkButtonField CommandName="del" Icon="Delete" ConfirmText="您确定要删除吗?" HeaderText="删除" Text="删除" />
        </Columns>
    </ext:Grid>