wcf服务问题 [英] Issue with wcf service

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

问题描述

Hello All,



我的silverlight xaml页面的listbox中有textblock字段作为数据模板点击我想将文本块名称传递给wcf服务方法。

例如:

如果我们在asp.net页面中有文本框并希望将文本框的文本传递给.cs文件,我们将使用文本框的id说txtid .text

Hello All,

I have textblock field as a data template in listbox of my silverlight xaml page on clicking i want to pass the textblock name to a wcf service method.
For example:
if we have textbox in asp.net page and want to pass the text of textbox to .cs file we will use id of textbox say txtid.text

推荐答案

你的问题很混乱。你为什么要那样做?但是如何在ListBox的DataTemplate中搜索TextBlock然后传递给方法呢?



更新:

http://leeontech.wordpress.com/2008/09/24/getting-the-control -inside-a-datatemplate / [ ^ ]



在Google上搜索,而不是Bing。然后,问这里:)



祝你好运。
Your question is very confuse. Why you want to do that? But what about searching your TextBlock inside DataTemplate of your ListBox and then pass to the method?

UPDATE:
http://leeontech.wordpress.com/2008/09/24/getting-the-control-inside-a-datatemplate/[^]

Search on Google, not Bing. Then, ask here :)

Best regards.


这篇关于wcf服务问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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