I want to link to a Microsoft Access database in visual studio. i am coding in C# and have found how to do using the site below
http://www.geekpedia.com/prog_ttrls.php?id=158
ive got upto the section where you enter the page load event to fill in the data grid using the following VB Code
Can someone help me convert this to C# code as i am struggeling to perform this in C#.
Thanks
Craig
http://www.geekpedia.com/prog_ttrls.php?id=158
ive got upto the section where you enter the page load event to fill in the data grid using the following VB Code
Code:
private void Page_Load(object sender, System.EventArgs e)
{
Dim myReader As System.Data.OleDB.OleDBDataReader;
OleDBConnection1.Open();
myReader= OleDbCommand1.ExecuteReader();
ISPDataGrid1.DataSource = myReader;
ISPDataGrid1.DataBind();
}
Thanks
Craig
Last edited by a moderator: