最近学习js脚本,觉得别的控件用手写的ajax调用没什么问题,但是gridview不会做
解决方案 »
- 急救!!!关于Controls属性的问题!
- 服务器端如何统计checkbox选择了多少个?
- 请问怎样可以获取客户端是那一个国家的,然后自动跳转到指定页面呢?(急)
- 关于asp.net 2.0使用了VaryByParam时在IE下的缓存问题
- _________关于用户控件中的User.Identity.Name
- Redirect的小问题,非常郁闷
- 急问题 立站问题
- 如何把时间转换成9999-12-31T08:00:00+08:00这样的实践格式?
- 紧急求助!
- asp.net 中的 javascript 问题(在线等)
- 刚才问了下,,没问清楚,,SqlDataReader是创建之后就自己打开连接码?
- 有没有功能完整的列表控件或者代码
gridview提交是指gridview本身的事件进行更新删除操作吧?
用updatepanel把gridview框住就行了。代码都不用写。
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" PageSize="3" >
......
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="uid" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="userid" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" /> </Triggers>
</asp:UpdatePanel>