Simple form with controls

2 posts, 0 answers
  1. Graham
    Graham avatar
    10 posts
    Member since:
    Mar 2014

    Posted 08 Apr 2014 Link to this post

    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
  2. Krsnaraja
    Krsnaraja avatar
    9 posts
    Member since:
    Aug 2007

    Posted 08 Apr 2014 in reply to Graham Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top