14-12-2005, 09:18
|
|
|
חבר מתאריך: 14.12.05
הודעות: 4
|
|
שאלה בASP.NET עם DATABASE
יצרתי פרוייקט בASP.NET שבו דרך ה server explorer התחברתי לsql server שמותקן אצלי במחשב.
הגעתי ל databases בחרתי בpubs ובחרתי טבלה נניח authors. גררתי אותה לדף חדש, יצרתי דרך
הצלמית של sqldataadapter את ה dataset, הוספתי datagrid וbutton שבו כתבתי למלא את הdataset וכן פקודת databind.
שם המחשב שלי והשם ב server הוא ANAT2005
בהפעלת הדף ע"י ה browser מתקבלת ההודעה הבאה:
Login failed for user 'ANAT2005\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 'ANAT2005\ASPNET'.
Source Error:
Line 150: private void Button1_Click(object sender, System.EventArgs e)Line 151: {Line 152: sqlDataAdapter1.Fill(dataSet11);Line 153: DataGrid1.DataBind();Line 154: }
מה הבעיה? מדוע אני לא מקבלת את הדף עם הטבלה ועם הנתונים?
בתודה
ענת
anat2403@walla.com
|