views:

43

answers:

3

Hi.

Is there any existing software for generating a UserControl from a table of a database?

For example, my table contain 3 fields : name , last name , age.

The software generates a user control that has 3 labels and textboxes with validation and submit button and a gridview for displaying information , etc...

Thanks all.

+4  A: 

You might want to look into Dynamic Data. It's an ASP.NET framework developed by Microsoft that automatically generates common UI elements based on Linq to SQL or Entity Framework objects (which are trivially easy to generate from a simple table like the one you mention.)

Ryan Brunner
+1. Fynamic Data - what else!
this. __curious_geek
Hi my friend.thanks for your attention.does dynamic dynamic data better that asp.net maker?
shaahin
Unfortunately, I haven't used ASP.NET Maker. I will say that Dynamic Data is well regarded, and being a Microsoft framework, plays nice with other approaches if you decide to add more customization or functionality to your site.
Ryan Brunner
@this. __curious_gee Please describe more. what do you mean?
shaahin
@shashin: sry. its a typo. Dynamic Data. Dynamic data best suits to ur need.
this. __curious_geek
+1  A: 

What you describe sounds an awful lot like UI "scaffolding". Take a look at the following article and related question:

ASP.NET Scaffolding/Templating CRUD Solutions
Dynamic Data

JohannesH
thank you :)does Dynamic data powerful tool?dynamic data vs asp.net maker?
shaahin
Dynamic data is fairly useful but it also has some limitations. You should try it out and see if it fits your needs.
JohannesH
+1  A: 

Here's one more O/R mapper capable of scaffolding (generating UI from database): http://www.subsonicproject.com/

VinayC