G
Guest
Hi, I have a repeater in which all rows are editable together (there is one
Save button at the top of the page).
When the page loads with the repeater populated, I change the value in one
of the textboxes and click on save. Instead of taking the newly entered
value I record the original value of the textbox. The code is below, thanks
for your help in advance:
private void lkbSave_Click(object sender, System.EventArgs e)
{
for(int count=0;count<ScoresRepeater.Items.Count;count++)
{
objReferralTestScore.TestScore[-1,
count].AssessmentInstanceScore=((TextBox)ScoresRepeater.Items[count].FindControl("tbxScore")).Text;
}
objReferralTestScore.Write();
Save button at the top of the page).
When the page loads with the repeater populated, I change the value in one
of the textboxes and click on save. Instead of taking the newly entered
value I record the original value of the textbox. The code is below, thanks
for your help in advance:
private void lkbSave_Click(object sender, System.EventArgs e)
{
for(int count=0;count<ScoresRepeater.Items.Count;count++)
{
objReferralTestScore.TestScore[-1,
count].AssessmentInstanceScore=((TextBox)ScoresRepeater.Items[count].FindControl("tbxScore")).Text;
}
objReferralTestScore.Write();