ASP.NET中的WCF双向绑定 [英] WCF Two Way binding in asp.net
问题描述
团队;
使用wcf时,任何机构都可以帮助我如何在asp.net中使用两种方式绑定.
1)在控制级别中如何设置数据成员和绑定模式
2)如何将根目录布局(容器控件保留所有控件)与数据联系.
例如,在sliverlight中:
1)
< TextBox 文本 =" =" txtFname" Grid.Column =" Grid.Row =" 3" >
2)
void MainPage_Loaded(对象发送者,RoutedEventArgs e)
{
// LayoutRoot包含所有控件的最上面的容器.
// [DataContract]的objRFEProxy对象
LayoutRoot.DataContext = objRFEProxy;
}
我找到了一些他们说要使用<%#Bind("FieldName")%>的文章.扩展,但如何指定模式以及如何指定根布局(包含所有控件).我认为没有这两种绑定方式不完整.
希望Plz建议我并提供一些良好的链接(URL).
谢谢's
Prasanta Kumar Pradhan
解决方案
^ ]和 ^ ]可能会为您提供帮助.
Hi Team;
Can any body help me how to use two way binding in asp.net when we use wcf.
1)In control Level how to assing data member and the binding mode
2)How to assing the root layout(container control hold all controls) to data contact.
e.g In sliverlight:
1)
<TextBox Text="{Binding mRequestorFirstName, Mode=TwoWay,NotifyOnValidationError=True, ValidatesOnExceptions=True}" Name="txtFname" Grid.Column="1" Grid.Row="3" />
2)
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
//LayoutRoot top most container which hold all the controls.
//objRFEProxy object of [DataContract]
LayoutRoot.DataContext = objRFEProxy;
}
I found some article where they say to use <%# Bind("FieldName") %> Expersion but how to specify mode and how to specify the root layout(which holds all the controls) . i think with out this two way binding incomplete.
Hopefully Plz suggest me and give some good links(URL).
Thank''s
Prasanta Kumar Pradhan
解决方案 Introducing-Two-Way-Data-Binding-using-Silverlight-20-WCF-and-LINQ-to-SQL/[^] and introduction-to-databinding-updated[^] might help you.
这篇关于ASP.NET中的WCF双向绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!