动态加载的.asmx web服务 [英] Dynamically load .asmx web-service

查看:134
本文介绍了动态加载的.asmx web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.aspx页面,可以执行许多功能。函数的类型是在运行时确定具体取决于哪个按钮,用户点击。这使得使web服务调用的方法的.asmx。该网站的服务调用返回的HTML和JavaScript,然后成为原始页面的一部分。

I have an .aspx page that can perform a number of functions. The type of function is determined at run-time depending on which button the user clicks. This makes makes a web-service call to an .asmx method. The web-service call returns html and javascript which then become part of the original page.

这新内容附加到按钮点击,数据验证等。在把这些事件再调用自己的Web服务的方法在另一个.asmx文件JavaScript事件。主要的页面不知道这些其他的.asmx文件时,页面加载。

This new content has javascript events attached to button clicks, data validation etc. In turn these events then call their own web-service methods in another .asmx file. The main page does not know about these other .asmx files when the page loads.

那么,有没有什么办法的按需动态加载这些的.asmx文件?

So, is there any way of dynamically loading these .asmx files on demand?

推荐答案

ASMX文件不会被加载。它们是文件,这些文件定义ASMX Web服务 - 叫哪些领域的。你并不需要加载这些文件。

"ASMX files" are not loaded. They are files which define ASMX web services - which area called. You don't need to load these files.

这篇关于动态加载的.asmx web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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