模型弹出窗口未关闭 [英] Model Pop Up is not closed
问题描述
Hello Professionals,
我有一个类似的问题
我有Commmon搜索页面Search.aspx,有下拉列表和动态绑定的gridviw。
我有其他页面,如doctor.aspx,reference.aspx
从那些页面我在模型弹出式iframe中调用了search.aspx。
i我从每个页面的会话传递参数到绑定下拉列表和gridview。
和searchpage.aspx正在搜索好
但是
问题是gridview有视图链接按钮,在它的'Row Command'事件中我要关闭模型弹出窗口并重新加载上一页因为Row命令我要填充上一页的文本框(如doctor.aspx) )。
i尝试过javascript window.close();但不成功...
任何帮助???
建议也欢迎....
你不能只写window.close()
。这是一个实例函数;您需要使用之前创建的某个窗口实例来调用它。
请参阅我过去的答案和代码示例:当父页面关闭时关闭一页 [ ^ ]。
你明白了吗?
-SA
Hello Professionals,
I have One Issue something like this
I have Commmon Search Page Search.aspx, that have dropdown and gridviw that are bound dynamically.
I have Other pages like doctor.aspx,reference.aspx
From that pages i have called search.aspx in model pop-up iframe.
i am passing parameters by session from every page to bind dropdown and gridview.
and searchpage.aspx is searching well
But
Problem is that gridview has view link button and in it''s Row Command event i want to close the model popup and reload the previous page cause on Row command i want to fill textboxes of previous page(like doctor.aspx).
i have tried with javascript window.close(); but unsuccessful...
any help???
suggestions are also welcomed....
You cannot just writewindow.close()
. This is an instance function; you need to call it with some window instance you created before.
Please see my past answer and the code sample: Close one page when parent page is closed[^].
Are you getting the idea?
—SA
这篇关于模型弹出窗口未关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!