How to use data controls to display data in data bound controls?

Y

yma

Hello,

I tried to display a column in MS Access 2000 nwind.mdb using 3 data
controls. But I got "It is
already opened exclusively by another user, or you need permission to view
its data." I put ole DataAdapter, Connection and dataset controls and fill
in the properties of the listbox. The only code I have is
OleDbDataAdapter1.Fill(DataSet11, "employees") in page_load sub.


Then I tried to use my local sql server 2000. SqlDataAdapter1.fill() caused
an unhandled system error. Could you show me how to use data controls to
display data in data bound controls, such as listview control?

By the way, I can write code to display a column in MS Access 2000 nwind.mdb
without using 3 data controls.

I used samples from Mastering Visual Basic.net from SYBEX. They do not work
either. If you know samples from some web site, please give me the links.

Thank you.

Chris
 
C

Cor

Hi YMA,

I thought I did send you a message, but I it seems it disapeared.

It was something as this,

Open a webproject
Drag a textbox, a label and a button to your webpage.

Open your code
In the load event replace the comment string with
\\
if not ispostback then
me.textbox1.text = "I am here"
end if
///
Go back to your form and push on the button, till the code opens again.
Place there in that button click event
\\\
me.label1.text = me.textbox1.text
///
Start debug.
Type in the textbox, "I was here" and push the button.
If all went well than the text will shown up in the label.

I hope this helps?

Cor
 
C

Cor

Hi Yma,

I saw I wrote it wrong, I did not send you a message, it was to this
newsgroup.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top