Update data in a repeater

R

Ray75

I've got a repeater with several text boxes and radiobuttonlist's on
it and submit button to process changes in the text fields. The data
loads fine, but the problem is my code isn't seeing any changes to the
textboxes when I submit. So basically, when I step through the code
the value assigned to txtPrice is the same as when the page loaded
rather than what I changed it to. Any ideas what I missed? Don't worry
I can translate C# if you send an edit. Whatever is easier

Private Sub update()
Dim txtPrice As TextBox = New TextBox()
Dim rblParty As RadioButtonList = New RadioButtonList()

Dim strPrice As String = Nothing
Dim strParty As String = Nothing


For Each dataItem As RepeaterItem In Repeater1.Items
txtPrice = CType(dataItem.FindControl("rptxtPrice"),
TextBox)
rblParty = CType(dataItem.FindControl("rblParty"),
RadioButtonList)

strPrice = txtPrice.Text.ToString().Trim()
strParty = rblParty.SelectedValue.ToString ().Trim()

'updatePrices(, , , ...)
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top