ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  ASP.NET Data Controls Part 1: DataGrids
Subject:   Need help
Date:   2006-05-16 00:04:42
From:   baagii
Hello there all,
Since i am beginner with asp.net........Got some errors while i was doing...........I got this.....If anyone could help me or let me know how to fix it............

Login failed for user 'BATBAYAR\ASPNET'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'BATBAYAR\ASPNET'.

Source Error:

Line 157: SqlDataAdapter1.SelectCommand.CommandText = _
Line 158: "SELECT * FROM Employee " & Session("sortby")
Line 159: SqlDataAdapter1.Fill(ds, "employee")
Line 160: DataGrid1.DataSource = ds
Line 161: DataGrid1.DataBind()

Any ideas,advices would be big help!

Thanks in advance.....