I am making use of a ASP.NET Repeater.
My Repeater is called myRepeater and I only want to display 20 items per page.
Can this be done with a ASP.NET Repeater and if so what changes must i make to my code below? I want to be able to make use of paging.......... C# example is also fine!!
' Define data objects
Dim conn As SqlConnection
Dim Comm As SqlCommand
Dim reader As SqlDataReader
conn = New Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString)
Comm = New SqlCommand( _
("Select * from TableName"), conn)
' Open the connection
conn.Open()
' Execute the category command
reader = Comm.ExecuteReader()
' Bind the reader to the repeater..........
myRepeater.DataSource = reader
myRepeater.DataBind()
' Close the reader
reader.Close()
' Close the connection
conn.Close()
Thanks in advance!!