Author: rkeslar | Posted on: 6/10/2008 9:06:34 AM | Views : 882

I have 4 FileUpload controls and I'm trying to insert the name of the file and a unique Guid name into the db when I upload each file in the db. I'm having trouble with adding parameters to the insert command object. Here is what I mean:

 1 SqlCommand InsertCommand = new SqlCommand();
2 InsertCommand.Connection = DBConnectionClass.myConnection;
3 InsertCommand.CommandType = CommandType.Text;
4
8 SqlParameter UniquePhotoParam = new SqlParameter();
9 UniquePhotoParam.ParameterName = "@UniquePhotoParam";
10
11 SqlParameter ActualPhotoParam = new SqlParameter();
12 ActualPho ...

Go to the complete details ...