您的位置:首页 > 其它

Atlas调用Web Service时为dataSource指定方法和参数

2006-08-21 15:16 246 查看
1.在页面中加入:

<asp:TextBox ID="pName" runat="server" Text="Love"></asp:TextBox>

2.在Atlas脚本中加入:

<textBox id="pName" visible="false"/>

<dataSource id="listDataSource" autoLoad="true" serviceURL="MyService.asmx" loadMethod="GetListData" >

<bindings>

<binding dataContext="pName" dataPath="text" property="parameters" propertyKey="name" direction="In"/>

</bindings>

</dataSource>

注:其中loadMethod指定Web Service中要调用的方法,binding 绑定相关参数。textBox 的visible属性设置为false时,参数对应的输入框被隐藏!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐