Ask a Question related to ASP.NET General, Design and Development.
-
Nakhi #1
can't getstring & display datareader
Hi,
I want to display a single record datareader and get a value from it. But I
can't do both together.
After "dim dr as Oledbdatareader=cmCat.ExecuteReader()", the following is
OK(display this single record):
repPage.datasource=dr
repPage.databind
The following is OK(retriving value):
dr.read()
dim thiscat=dr.getstring(1)
But the following is error:
repPage.datasource=dr
repPage.databind
dr.read()
dim thiscat=dr.getstring(1)
Is that after binding,the cursor is at the next after last row, and I can't
get the first row(the only row)?
How can I do both together? Can any one give me a hit?
Thanx
Nakhi
Lijiang,Yunnan,China,Asia
Nakhi Guest
-
opengl: What happened to GetString?
hi, on ruby173 and previous this worked: GL.GetString( GL::VERSION) but with 180-10 i am getting this error message: :in `GetString': NULL... -
encoder.GetString() help
I have tried the following to convert an encrypted byte() into a string to write it to a database: Dim encoding as new UTF8Encoding() Dim EncNum... -
inserting option values into drop down lists with getstring when using distinct in the SQL
I don't know what your problem is. It works fine for me. Here is my code: <% dim cn,rs set cn=server.CreateObject("adodb.connection") ... -
getstring really slow
Hi, Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx... -
datareader.getstring(0) error
Hi, my code is very simple. dim cm as oledbcommand= new oledbcommand("select * from page " ,cn) cn.open() Dim dr As OleDbDataReader =...



Reply With Quote

