G
Guest
Hi,
I just converted my asp.net app to vs2005 and now developing using vista and
run into a problem using the repeater control.
I bind the repeater control using
If Not IsPostBack Then
strError = myInvoice.GetOpenInvoices()
If strError <> "" Then
lblError.Text = strError
lblError.Visible = True
Return
End If
rptrInvoices.DataSource = myInvoice.myOpenInvoices.MyDataSet
rptrInvoices.DataBind()
Next
when I use
Dim oItem As RepeaterItem
For Each oItem In rptrInvoices.Items
Dim SSS, rrr
Dim eee As TextBox
eee = oItem.FindControl("txtPayAmountCol")
rrr = eee.Text.ToString().Trim()
End For
the rrr value is always empty on the postback. I made sure that the bind was
not happening also on the postback
I further checked that value is in the text box by using:
Dim htmlItem, htmlvalue As String
For nI = 1 To (Request.Form.Count() - 1)
htmlItem = Request.Form.GetKey(nI)
htmlvalue = Request.Form.Item(nI)
nEXT
and check each value and the value is there. For example 111.11 as entered.
Can anyone help me?
I just converted my asp.net app to vs2005 and now developing using vista and
run into a problem using the repeater control.
I bind the repeater control using
If Not IsPostBack Then
strError = myInvoice.GetOpenInvoices()
If strError <> "" Then
lblError.Text = strError
lblError.Visible = True
Return
End If
rptrInvoices.DataSource = myInvoice.myOpenInvoices.MyDataSet
rptrInvoices.DataBind()
Next
when I use
Dim oItem As RepeaterItem
For Each oItem In rptrInvoices.Items
Dim SSS, rrr
Dim eee As TextBox
eee = oItem.FindControl("txtPayAmountCol")
rrr = eee.Text.ToString().Trim()
End For
the rrr value is always empty on the postback. I made sure that the bind was
not happening also on the postback
I further checked that value is in the text box by using:
Dim htmlItem, htmlvalue As String
For nI = 1 To (Request.Form.Count() - 1)
htmlItem = Request.Form.GetKey(nI)
htmlvalue = Request.Form.Item(nI)
nEXT
and check each value and the value is there. For example 111.11 as entered.
Can anyone help me?