DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 01:44:03 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Guus123 am


Repeater control is returning blank textbox   
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?




-- 
FC Utrecht are Champions!
Date:Tue, 14 Aug 2007 01:44:03 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us