D
djozy
I want to make asp.net application in C# that is connected
with SQL Server database. When I put this connection
string:
SqlConnection conn = new SqlConnection(
"user id=;" +
"password=;server=localhost;" +
"Trusted_Connection=yes;"+
"database=Knjiznica;" +
"connection timeout=30");
try
{
conn.open();
}
catch(SqlException sqle)
{
this.TextBox1 .Text =sqle.Message ;
}
it throws me this error in textbox1: Login failed for
user 'JOSIP-SKY2IGFE7\ASPNET'. where JOSIP-SKY2IGFE7 is
name of my computer.
When I make windows application and put the same
connection string it works!!
What do I need to do that my web applications also works?
Thank you
with SQL Server database. When I put this connection
string:
SqlConnection conn = new SqlConnection(
"user id=;" +
"password=;server=localhost;" +
"Trusted_Connection=yes;"+
"database=Knjiznica;" +
"connection timeout=30");
try
{
conn.open();
}
catch(SqlException sqle)
{
this.TextBox1 .Text =sqle.Message ;
}
it throws me this error in textbox1: Login failed for
user 'JOSIP-SKY2IGFE7\ASPNET'. where JOSIP-SKY2IGFE7 is
name of my computer.
When I make windows application and put the same
connection string it works!!
What do I need to do that my web applications also works?
Thank you