Many developers use ASP.NET with MySQL with their applications. If you use ASP.NET hosting services and some of the .NET stack as VB.NET or C# then you could connect to the MySQL database using ODBC .net data provider. Please follow the next MySQL C# ASP.NET tutorial to achieve your goals.

ASP.NET Core 3 and Angular 9: Full stack web development with .NET Core 3.1 and Angular 9, 3rd Edition
C# in Depth, 4th Edition

Connect to MysQL database using C# using ASP.NET hosting

OdbcConnection cn = new OdbcConnection(“Driver={MySQL ODBC ODBC 5.2a Driver};Server=localhost or remote;Database=test;User=user;Password=pass;Option=3;”);

OdbcCommand cmd = new OdbcCommand();

OdbcDataAdapter da = new OdbcDataAdapter();

DataSet ds = new DataSet();

OdbcDataReader rd;

Connect to MysQL database using VB.NET using ASP.NET hosting

Dim MyConnection as OdbcConnection

MyConnection = new OdbcConnection(“Driver={MySQL ODBC 5.2a Driver};Server=localhost or remote;Database=test;User=user;Password=pass;Socket=MySQL;Option=3;”)