Author: ajw | Posted on: 10/25/2009 6:36:54 AM | Views : 302

Must declare the variable '@ImagePath'. what the problem here?- i thought I declared the variable

Server Error in '/Build' Application. Must declare the variable '@ImagePath'. Description: An unhandled exception occurred dng 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: Must declare the variable '@ImagePath'.

Source Error:

Line 152: SqlDataSource1.InsertParameters.Add("@ImagePath", fileupload1.FileName) Line 153: SqlDataSource1.InsertCommand = ("INSERT INTO Images ( ...

Go to the complete details ...