data binding to a repeater control

Results 1 to 2 of 2

Thread: data binding to a repeater control

  1. #1
    Join Date
    Dec 1969

    Default data binding to a repeater control

    I have the following codes in my codebehind. I am using an upload 3rd-party control to upload files into my web server and the data is generated by looping through using for each... My problem is how do I show the data using a table in Since I only need to show the data, I am thinking I should use the simplest data control which is the repeater. But I don&#039;t know how to bind the data to the control. Any help would be appreciated.<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> &#039;Put user code to initialize the page here<BR> Dim i, count As Integer<BR> Dim file, item, strTempFolder As String<BR> Dim upl As New UPLDICTIONARYLib.UplDictionaryClass()<BR> strTempFolder = "e:inetpubwwwrootsft2.0download mp" & Int(400000 * Rnd(10000) * Second(Now))<BR> Directory.CreateDirectory(strTempFolder)<BR> upl.Path = strTempFolder<BR><BR> For Each item In upl.Form<BR> Try<BR> upl.SaveAs(Mid(upl.Form(item).userfilename, InStrRev(upl.Form(item).UserFilename, "\") + 1))<BR> Response.Write("Success: " & upl.Form(item).userfilename & vbCrLf)<BR> Catch<BR> Response.Write("Error: " & Err.Description)<BR> End Try<BR> Next<BR> End Sub

  2. #2
    Join Date
    Dec 1969

    Default RE: data binding to a repeater control

    Im not sure what you are trying to do... but I know you can bind stuff to an array... Maybe store the data you need to display in an array?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts