ASP.NET中的WCF双向绑定 [英] WCF Two Way binding in asp.net

查看:60
本文介绍了ASP.NET中的WCF双向绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队;

使用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

解决方案

介绍到databinding-已更新 [<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屋!

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