Hi,
I am trying to develop a database driven web application. I have read the books, installed the software, followed the pointless example in the book to the letter but keep hitting this hurdle.
System.Data.SqlClient.SqlException: Login failed for user
Here is the code i habe typed in, it is an example from a book, the end product is supposed to be a pizza order system:
Line 50: SqlCommand1.Parameters("@pizzatype").Value = radlPizzatype.SelectedItem.Value
Line 51: SqlCommand1.Parameters("@comments").Value = txtComments.Text
Line 52: SqlConnection1.Open()
Line 53: SqlCommand1.ExecuteNonQuery()
Line 54: SqlConnection1.Close()
It is falling over at line 52: and giving me the following stack trace:
[SqlException: Login failed for user 'ASHLEY\ASPNET'.]
System.Data.SqlClient.SqlConnection.Open() +761
chapter9.InsertPizzaOrders.Button1_Click(Object sender, EventArgs e) in d:\inetpub\wwwroot\chapter9\InsertPizzaOrders.aspx .vb:52
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
I am reaching the end of my teather with this, if anyone could help me and point me in the right direction to get everything configured properly i will be very grateful.
Cheers