Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
v2
Comments
karteekboddu 5-Jun-13 10:49am    
I am using a silverlight enabled webservice and i want to pass this data to a method in the service to retrieve the data from the query.
Christian Amado 5-Jun-13 15:47pm    
There is your answer. Works for me. Enjoy!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900