如何显示弹出窗口以确认更新操作 [英] How to show a popup to confirm update operation

查看:97
本文介绍了如何显示弹出窗口以确认更新操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


使用AspxGridView,我想实现aspxpopup来确认更新记录。

我需要在更新前用什么用户输入做一些服务器端数据检查,我可以查看在服务器端grid.RowValidating事件。检查后,我如何启动aspxpopup后让用户确认更新记录?



总之,用户单击EditForm中的更新按钮后,是否可以包含一个Aspxpopup确认更新,并根据用户输入,决定执行或不执行grid.RowUpdating / grid / RowInserting事件代码?



谢谢

解决方案

查看一些例子。



1. Ajax ModalPopUpExtender编辑asp.net中gridview行值的示例 [ ^ ]

2. ASP.NET:在模态弹出窗口中显示GridView行详细信息使用Twitter Bootstrap [ ^ ]

3. 使用ASP.Net AJAX ModalPopupExtender进行添加和编辑GridView中的行 [ ^ ]


参考



edit-gridview-row-with-model- popup-extender-in-Asp-Net-ajax / [ ^ ]


它的帮助



 <   asp:TemplateField     HeaderText   =  DELETE    HeaderStyle-BackColor   =  #8d3736      HeaderStyle-CssClass   =  gridheader >  
< ItemTemplate >
< asp:ImageButton ID = ImageButton8 runat = server CommandName = del

ImageUrl = 〜/ Images / delete.png

< span class =code-attribute> onclientclick = 返回确认('您要删除吗?')

< span class =code-attribute> onclick = ImageButton8_Click < span class =code-attribute> / >
< / ItemTemplate >


Hi Using AspxGridView, I want to implement aspxpopup to confirm updating record.
I need to do some server-side data check with what user input before updating, and I can check that in server side grid.RowValidating event. After checking, how do I launch a aspxpopup afterward to let user confirm updating the record?

In summary, after user click Update button in EditForm, is it possible to include a Aspxpopup to confirm the Update, and base on user input, decide to execute or not execute grid.RowUpdating/grid/RowInserting event code?

Thank you

解决方案

See some examples.

1. Ajax ModalPopUpExtender Example to edit the gridview row values in asp.net[^]
2. ASP.NET: Display GridView Row Details in Modal Popup using Twitter Bootstrap[^]
3. Using ASP.Net AJAX ModalPopupExtender for adding and editing rows in GridView[^]


Refer

edit-gridview-row-with-model-popup-extender-in-Asp-Net-ajax/[^]


its help you

<asp:TemplateField HeaderText="DELETE" HeaderStyle-BackColor="#8d3736"  HeaderStyle-CssClass="gridheader">
                             <ItemTemplate>
                                 <asp:ImageButton ID="ImageButton8" runat="server" CommandName="del"

                                     ImageUrl="~/Images/delete.png"

                                     onclientclick="return confirm('Do You Want To Delete?')"

                                     onclick="ImageButton8_Click" />
                             </ItemTemplate>


这篇关于如何显示弹出窗口以确认更新操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆