Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

update records behavior: update records contained in repeater controls

I easily created an ASP.net c#  Web Page with servercontrols linked to a database.  I also added the "Update Records Behavior" and I am able to Update the record very easily.

The problem comes when I place the Controls within a "Repeater Control".  I click the "update button" but the record is never updated.   I suspect the problem is that the controls become child controls of the "repeater control", so....the request.form[control] is never found.

Please can you give me some hints to solve this?

Thank you.

1 Solution

I believe you cannot mix Repeater Control (repeating what comes OUT from a database, to present MANY records on the same time) with UPDATE - (since "UPDATE RECORD" acts on ONE record going IN to the database (not multiple records...)).

Normally, you use the repeater to present a LIST and then from there you have an "update" button that makes you go to a form, with an ID-paramater, and that form then uses the UPDATE to update the form...

(A typical, (yet yes, ugly...) sample - http://www.prifre.com/events.asp - but it is fun to search for birthdays - and easy for anyone to update... ;-)

hope the answers helps

With a smile


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now