如何在PageLoad中打开模态弹出窗口 [英] How to Open Modal Popup in PageLoad

查看:97
本文介绍了如何在PageLoad中打开模态弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

please help! Enquiry form on ajax modelpopup which load one time when website is load and after filling the form and click on submit button popup will disappear

推荐答案

您好,

我可以告诉您如何完成此操作但我不会给你准确的代码,以便你可以自己做。这不是很难。

对于模态,您可以使用 jQuery Colorbox插件 [ ^ ]创建模态弹出窗口。还有很多插件可以创建弹出窗口。你可以在google上搜索。现在调用jQuery文档就绪函数中的模态弹出窗口,以便在页面加载时显示模态。

现在您可以使用asp按钮单击事件来保存单击按钮的数据。这将导致回发和回发后,您可以从后端调用函数来关闭颜色框。



我希望这会有所帮助。如果你卡在任何地方,请告诉我。

谢谢:)
Hi,
I can give you an idea of how you can complete this but I''ll not give you exact code so that you can do it by yourself. This is not very hard.
For modal you can use jQuery Colorbox plugin[^] to create modal popup. There are many more plugins to create a popup. You can search on google for that. Now call the modal popup in jQuery document ready function, so that on page load the modal show up.
Now you can use asp button click event to save data on clicking the button. This will cause a postback and after postback you can call a function from backend to close the colorbox.

I hope this will help. Let me know if you stuck anywhere.
Thanks :)


我不确定它会对你有所帮助但是你应该看看:

http://go4answers.webhost4life.com/Example /show-aspnet-modal-popup-page-load-104880.aspx [ ^ ]
I ain''t sure it will help ya but you should take a look :
http://go4answers.webhost4life.com/Example/show-aspnet-modal-popup-page-load-104880.aspx[^]


这篇关于如何在PageLoad中打开模态弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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