update records behavior: update records contained in repeater controls

Posted on 2004-11-30
Last Modified: 2010-05-18
I easily created an 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.

Question by:mcclausky
    1 Comment
    LVL 9

    Accepted 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 - - but it is fun to search for birthdays - and easy for anyone to update... ;-)

    hope the answers helps

    With a smile


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now