简体   繁体   English

在Silverlight中从数据库检索数据

[英]Retrieving data from database in silverlight

I need to display data from my database 我需要显示数据库中的数据

    <StackPanel Orientation="Horizontal">
<TextBlock Text="TopAggregate:" FontWeight="Bold" Foreground="#FF0F274E" Height="25" Width="80" FontSize="10" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Converter={StaticResource MyDictionaryConverter}, ConverterParameter=, Mode=OneWay}"  FontWeight="Bold" Foreground="#FF0F274E" Height="25" Width="240" FontSize="10" VerticalAlignment="Center"></TextBlock>
    </StackPanel>

these are the only lead I have for achieving this, I just need to know what the converter parameter should be? 这些是我实现此目标的唯一途径,我只需要知道转换器参数应该是什么?

转换器参数应该是要检索的数据表中的列名

The problem lies with your column name of your table. 问题出在表的列名上。 There you go 你去

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM