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

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top