Use the following reference for MySQL
- using MySql.Data.MySqlClient;
1.Open the visual Studio
2.Create the new website and save it
3.Now open the Default.aspx form and drag some Labels, text boxes and button.
- <asp: Label ID="Label1" runat="server" Text="Name">
- </asp:Label>
- <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /> <br />
- <asp:Label ID="Label2" runat="server" Text="Address"></asp:Label>
- <asp:TextBox ID="TextBox2" runat="server">
- </asp: Textbox> <br /> <br />
- <asp:Label ID="Label3" runat="server" Text="Age"></asp:Label>
- <asp:TextBox ID="TextBox3" runat="server">
- </asp: Textbox> <br /> <br /> <br /> <br />
- <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> <br /> <br /> <br /> <br />



srinivas prabhuPosted Nov 18, 2021, 6:54 AM
It is giving error like Could not load file or assembly 'MySql.Data, Version=8.0.27.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
pushpendra singhPosted Feb 3, 2012, 12:26 PM
I am new to C# and mysql database connectivity. What I want to do is ....to connect my c# window based application to the mysql database which is online. Please send the solution to my id [email protected] thanks in advance..