This is a migrated thread and some comments may be shown as answers.

Simple form with controls

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 08 Apr 2014, 07:21 AM
Hello

looking for advice on best control to use. I want to have a simple ASP.NET form with say 10 fields to be entered by the user. it is not a grid only 1 record (similar to a user account profile) most will be textboxes. I can see how I can use the DataAccess component to build the model, and i can see how I could use with code to update the database. But I would like to have the controls binded to the database, should I use the DataAccess?

do I create the controls and then add code behind to buttons for 'Insert' and 'Update'?

thanks

graham

1 Answer, 1 is accepted

Sort by
0
Krishnaprabhuraja
Top achievements
Rank 1
answered on 08 Apr 2014, 09:09 AM
Hi,

I suggest you create a user control and use the Bind() method (two-way updatable binding) of the databinder. The textbox controls in the user control can also be loaded dynamically inside a templated control like ASP.NET Repeater based on the model. 

Below help topic might help you:
http://www.telerik.com/help/aspnet-ajax/input-inside-databound-controls.html

Thanks,
Krishna Raja
Tags
General Discussions
Asked by
Graham
Top achievements
Rank 1
Answers by
Krishnaprabhuraja
Top achievements
Rank 1
Share this question
or