Hi,
I agree with Garth. Download the connector and then create a connection in web.config as
<connectionStrings>
<add name="ConnectionString" connectionString="Server=localhost;userid=userid;password=pwd;Database=Databasename" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
And then you can use this as
MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
Bind the grid and then use your code.
Regards,
Praneet