i want to display data on a web page
i m using sql server 2000 and northwind database
but when i run my project then error comes on web page and data doesn't displayed.
This error comes on web page
Server Error in '/WebApplication2' Application.
Login failed for user 'PC1\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 'PC1\ASPNET'.
Source Error:
Line 95:
Line 96: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 97: SqlDataAdapter1.Fill(DataSet11)
Line 98: DataGrid1.DataBind()
Line 99:
Source File: c:\inetpub\wwwroot\WebApplication2\WebForm1.aspx.vb Line: 97
i m using following code only
plz see the attache fileCode:Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SqlDataAdapter1.Fill(DataSet11) DataGrid1.DataBind() End Sub
can any body tell me what is the problem.




Reply With Quote