将Web服务输出映射到HTML文本框
如何在不打开新页面的情况下在同一HTML页面中使用web服务返回的输出 我目前使用的代码是:将Web服务输出映射到HTML文本框,html,web-services,webforms,Html,Web Services,Webforms,如何在不打开新页面的情况下在同一HTML页面中使用web服务返回的输出 我目前使用的代码是: <form action='http://omarelsherif.com/Services/TestXMLWebService/TestService.asmx/HelloWorld3' method="post" target="_blank"> <table align="center" cellpadding="5" width="400" border="1">
<form action='http://omarelsherif.com/Services/TestXMLWebService/TestService.asmx/HelloWorld3' method="post" target="_blank">
<table align="center" cellpadding="5" width="400" border="1">
<tr>
<td valign="top" width="100">
Hello World 3</td>
<td>
<input class="frmInput" type="text" size="30" name="name" />
<br />
<input class="button" type="submit" value="Submit" />
<br />
<input class="frmOutput" type="text" size="30" name="HelloWorld3" />
</td>
</tr>
</table>
</form>
你好,世界3
我想将返回值放在名为frmOutput的文本框中。如果这是asp.net,则需要在代码隐藏文件中执行。您需要将(某些)输入字段更改为asp:controls,以便可以在codebehind中访问。在页面的代码隐藏中,您只需将返回值从webservice分配给您字段。根据webservice返回的内容,在将返回值分配给输出控件之前,可能需要对其进行一些操作。我知道如何在asp.net中处理它,我已经完成了。我想知道的是如何使用文本编辑器在HTML中实现这一点。Omar,你可能想在你的问题中解释这一点,并可能重新命名和标记你的问题,以让正确的人看到它。我怀疑这是一个javascript/jquery问题,但我真的不知道您想要的答案。