This is my first time trying to use a database in ASP.Net, and I have a problem:
My database is located on my computer (localhost), and it throws an exception when I click the submit button:
SQLException was not handled by user code. Login failed for user. "
protected void Register_Click(object sender, EventArgs e) { SqlConnection connection = new SqlConnection("server = localhost ;uid=; Password= database = Movies;"); connection.Open();
Since the server is on my computer, I donβt have a username, right ?!
source share