在Asp.Net中显示jquery IFrame时停止代码执行 [英] Stop code execution while showing jquery IFrame in Asp.Net

查看:94
本文介绍了在Asp.Net中显示jquery IFrame时停止代码执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在循环中使用jquery IFrame显示一些弹出框用于验证目的

我的问题是,当屏幕上出现第一个弹出框时,代码隐藏文件的执行应该停止,直到我不关闭弹出窗口盒子。



请帮助

先谢谢。

I am showing some popup box for validation purpose using jquery IFrame in loop
My problem is that when first popup box appear on the screen the execution of codebehind file should stop until i dont close the popup box.

please help
Thanks in Advance.

推荐答案

JavaScript功能,包括jQuery,它只是一个JavaScript库,与后面的代码无关。如果仅在客户端执行,则代码隐藏在服务器端执行。当正在执行脚本时,所有后面的代码都已经完成执行,因为整个页面及其所有脚本都出现在客户端,这是由于服务器端操作:处理HTTP请求和发送HTTP响应。



所以,问题根本没有意义:没有什么可以阻止的。可能这个问题是基于对HTTP和Web如何工作的一些误解。另请参阅:

http://en.wikipedia.org/wiki/HTTP [ ^ ],

http://en.wikipedia.org/wiki/HTTP_request [ ^ ],

http://en.wikipedia.org/wiki/HTTP_response [ ^ ]。







JavaScript functionality, including jQuery, which is nothing but a JavaScript library has nothing to do with code behind. If is executed only on the client side, while code behind is executed on server side. When a script is being executed, all code behind is already completed the execution, as the whole page, with all its scripts, has appeared on the client side as a result of of the server-side operation: processing of the HTTP request and sending of the HTTP response.

So, the question simply makes no sense: there is nothing which you can stop. Probably, the question is based on some misunderstanding of how HTTP and Web work. Please see also:
http://en.wikipedia.org/wiki/HTTP[^],
http://en.wikipedia.org/wiki/HTTP_request[^],
http://en.wikipedia.org/wiki/HTTP_response[^].



Susheel Kumar Verma写道:
Susheel Kumar Verma wrote:

opps不是codebehind我在java脚本中使用while循环它自己

opps not codebehind i am using while loop in java script it self

太晚了。 :-)



现在,请查看我对该问题的最后评论,并尝试提供一些代码示例和充分的解释。



-SA


这篇关于在Asp.Net中显示jquery IFrame时停止代码执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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