Click here to Skip to main content
15,937,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
who know code upload more images in a time, please introduction with me. thank very much
Posted
Comments
[no name] 17-Sep-12 22:51pm    
Maybe you could explain more what it is that you are trying to do.
Hai Quan 17-Sep-12 23:10pm    
i have a code upload images. but only upload 1 images 1 time:

//Get Filename from fileupload control
string filename = Path.GetFileName(fileuploadimages.PostedFile.FileName);
//Save images into SlideImages folder
fileuploadimages.SaveAs(Server.MapPath("SlideImages/" + filename));
//Open the database connection
con.Open();
//Query to insert images name and Description into database
SqlCommand cmd = new SqlCommand("Insert into MySampleDB(ImageName,Description) values(@ImageName,@Description)", con);
//Passing parameters to query
cmd.Parameters.AddWithValue("@ImageName", filename);
cmd.Parameters.AddWithValue("@Description", txtDesc.Text);
cmd.ExecuteNonQuery();
//Close dbconnection
con.Close();
txtDesc.Text = string.Empty;
BindDataList();

i want 1 time upload more images.

1 solution

Look at free amazing Flajaxian FileUploader[^]
 
Share this answer
 
Comments
Hai Quan 17-Sep-12 23:26pm    
Thank very much Kuthuparakkal
Kuthuparakkal 17-Sep-12 23:26pm    
You're most welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900