Try to do some research,
Refer this link,Here you can find how to use where clause with select statement.
http://www.w3schools.com/sql/sql_where.asp[
^]
(Or)
try like this,
declare @user_id=1;
select image_name from your_table_name where userid=@user_id
declare @user_id=2;
select image_name from your_table_name where userid=@user_id
declare @user_id=3;
select image_name from your_table_name where userid=@user_id
Edit:
I make some little bit change in your code,try like this.
string query1 = "select ImageName from FileUploads where UserId=@ID ";
SqlCommand cmd1 = new SqlCommand(query1, con);
cmd1.CommandType = CommandType.Text;
cmd1.Parameters.AddWithValue("@ID", User.UserId);
con.Open();
SqlDataAdapter ad = new SqlDataAdapter(cmd);
DataTable dt= new DataTable();
ad.Fill(dt);
Debug it,and check the datatable values.It will give you a list of imageName where id equals.
And bind datatable value where you want in your code.