By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,207 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,207 IT Pros & Developers. It's quick & easy.

How to databind to a mysql database in vs2005 using basic/ or c#

P: n/a
Hello,

I know how to create a mysql database and open it in code.

I don't know how to databind to it.

i have a simple form with 5 controls text controls. I want to enter
text into the controls, and write this text to a corresponding column
in the mysql database.

how do i do this please?

Thanks,
Gary.

Apr 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

You bind your controls to an IList , this interface is implemented by
DataSet , so one solution is fill your dataset ( by using DataAdapter.Fill )
and then just bind it to your control.
Another possibility is using the DataReader , if you are just displaying the
info and do not need to keep it in memory just the IDataReader
implementation, just remember to close it after you are done with it.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<ga********@myway.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Hello,

I know how to create a mysql database and open it in code.

I don't know how to databind to it.

i have a simple form with 5 controls text controls. I want to enter
text into the controls, and write this text to a corresponding column
in the mysql database.

how do i do this please?

Thanks,
Gary.

Apr 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.