从WebMethod打开一个新窗口 [英] open a new window from a WebMethod

查看:62
本文介绍了从WebMethod打开一个新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Asp.net中从WebMethod中打开一个新窗口.我想使用一种Web方法从JQuery中访问后面的代码.在WebMethod中,因为它是静态方法,所以我们无法访问aspx页面中的控件.无法使用ScriptManager.RegisterStartupScript(this.UpdPanel,typeof(string),"OPEN_WINDOW",fullURL,true);等等.在webMethod中,我想使用方法

How can i open a new window from a WebMethod in Asp.net.I want to use a webmethod for accessing code behind from JQuery.In the WebMethod because it is static method we cannot access the controls in the aspx page.and cannot use ScriptManager.RegisterStartupScript(this.UpdPanel,typeof(string), "OPEN_WINDOW", fullURL, true); etc.In the webMethod i want to open new pop up window with the conditions on method

推荐答案

上的条件打开新的弹出窗口.您可以调用WebMethod,然后将任何必要的数据传递回调用JavaScript并从那里打开窗口.
You can call the WebMethod then pass any data necessary back to the calling JavaScript and open the window from there.


这篇关于从WebMethod打开一个新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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