data binding to a repeater control

HxC_

New Member
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 asp.net? 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'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> '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 SubIm 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?
 
Back
Top