使用ascx页面中的jquery进行删除前的警告弹出窗口,用于onClientClick中的链接按钮调用 [英] alert popup before delete using jquery in ascx page for link button calling in onClientClick

查看:64
本文介绍了使用ascx页面中的jquery进行删除前的警告弹出窗口,用于onClientClick中的链接按钮调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在删除gridview中的行之前帮助我创建警报,至于我的要求,我在ascx页面中创建了一个网格并在aspx页面中调用。我有一个LinkBut​​ton用于删除,功能正常,但我无法在删除前获得弹出警告。如果我使用返回确认('删除前'警告')它工作正常,而不是警报我需要一个弹出窗口。我需要onClientClick中的所有内容,因为我有调用onClick后面的代码



请帮助我谢谢

解决方案

< BLOCKQUOTE> 1。您可以使用jQueryUI显示弹出窗口。请访问以下链接:



http://jqueryui.com/dialog/ [ ^ ]



2.如果您不想使用jQueryUI,那么您可以使用CSS。请访问以下链接:



http://jsfiddle.net/B4t3V/ [ ^ ]



http://www.alessioatzeni.com/blog / login-box-modal-dialog-window-with-css-and-jquery / [ ^ ]



http://stackoverflow.com/questions/1328723/how-to-generate-a-simple- popup-using-jquery [ ^ ]





希望以上链接可以为您提供帮助。


please help me in creating a alert before deleting a row in gridview, as for my requirement i created a grid in ascx page and calling in aspx page. I have a LinkButton for deleting and the functionality is working fine but i'm unable to get a popup warning before delete. If i use "return confirmation('alert before delete')" it's working fine, instead of alert i need a popup. I need to all it in onClientClick as i have code behind calling in onClick

please help me thanks

解决方案

1. You can show popup using jQueryUI. Visit below link:

http://jqueryui.com/dialog/[^]

2. If you do not want to use jQueryUI then you can use CSS. Visit below links:

http://jsfiddle.net/B4t3V/[^]

http://www.alessioatzeni.com/blog/login-box-modal-dialog-window-with-css-and-jquery/[^]

http://stackoverflow.com/questions/1328723/how-to-generate-a-simple-popup-using-jquery[^]


Hope above links will help you.


这篇关于使用ascx页面中的jquery进行删除前的警告弹出窗口,用于onClientClick中的链接按钮调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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