Manually Bind to List View or Grid View
Posted: Tue 30 Nov 2010 15:14
I need the ability to manually bind a OracleDataReader output to a list view or a grid view.
What is the best way to accomplish this?
Do I somehow need to cast the OracleDataReader as a DataTable and bind that to a Grid View/List View?
Thanks
What is the best way to accomplish this?
Code: Select all
Dim OracleConnection As OracleConnection = New OracleConnection()
OracleConnection.ConnectionString = "User Id=jdoe;Password=password;Server=ordb;"
OracleConnection.Open()
Dim command As OracleCommand = OracleConnection.CreateCommand()
command.CommandText = "SELECT * from users WHERE user = '" & Request.Form("user") &"'"
dim reader As OracleDataReader = command.ExecuteReader()Thanks