Master/Detail help
Posted: Thu 18 Aug 2005 18:48
I am new to MySqlDirect am trying create a simple master detail in a Visual Studio 2003 Web application.
I've used the code numerous times connecting to a MSDE database, but I'm strugling using MySQL and MySQLDirect.
I want populate a datalist on one page, then carry a value (selected choice) through the URL to another page and populate a datagrid based on the value passed over.
When debugging, the querystring value is passed over, but I get an error saying "Invalid index -1 for this Parameters"
Does a MySqlDataAdapter work in exactly the same way as an SqlDataAdapter?
Has anybody got any code samples?
I also wanted to populate a label with teh selected choice.
Part of the code was
"dtrMenu = MySqlCommand1.ExecuteReader"
But this gives an error saying,
"Value of type 'CoreLab.MySql.MySqlDataReader' cannot be converted to 'System.Data.SqlClient.SqlDataReader'."
Thanks
I've used the code numerous times connecting to a MSDE database, but I'm strugling using MySQL and MySQLDirect.
I want populate a datalist on one page, then carry a value (selected choice) through the URL to another page and populate a datagrid based on the value passed over.
When debugging, the querystring value is passed over, but I get an error saying "Invalid index -1 for this Parameters"
Does a MySqlDataAdapter work in exactly the same way as an SqlDataAdapter?
Has anybody got any code samples?
I also wanted to populate a label with teh selected choice.
Part of the code was
"dtrMenu = MySqlCommand1.ExecuteReader"
But this gives an error saying,
"Value of type 'CoreLab.MySql.MySqlDataReader' cannot be converted to 'System.Data.SqlClient.SqlDataReader'."
Thanks