我在我的项目中使用knockout.js将模型绑定到视图。基本上,在document.ready函数中,我使用以下代码:
var viewModel = {
firstName: ko.observable("John")
listofChildren=ko.observablearray()
};
ko.applyBindings(viewModel);
dataService.getChildren(viewModel); // This is no good need to move to partial view
我目前正在尝试使用RIA服务的Silverlight。我正在实现一个简单的登录表单。我还使用了提供的身份验证域服务模板,该模板生成以下文件:
[EnableClientAccess]
public class AuthenticationDomainService : AuthenticationBase<User>
{
// To enable Forms/Windows Authentication for the Web Application,
// edit the appropriate section of web.config file.
}
p