asp.net - binding between EntityFramework Objects and WebForm Controls -


With ASP.NET 4, is there any way we can tie web-form controls into entity structure objects?

  & lt; Asp: textbox id = "username" runat = "server" boundout = "user name" binding source = "..." & gt; & Lt; / Asp: textbox & gt;  

Then just in MVC I

  form.UpdateModel (userObj), form.DisplayModel (userObj)  

Any ideas?

Yes, you can use a DetailsView control with TrueGenerateColumn to display objects in line , But it does not use any features to set control display names and to accommodate any other features such as MVC ...

Or, the column is incorrect and explicit in order to autoogenerate Force the properties of the object to be bound; This control can force any object type.

HTH


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -