Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hari Krishna93 reputationPosted May 9, 2013, 4:43 AM EDT
The following code for default image stored into database when Fileupload doesn't have file. This code may help to u.
.aspx.cs
-----------------
string query = "Insert into Comments values('" + TxtName.Text + "','" + TxtComments.Text + "','~/Images/noAvator.jpg','" + DateTime.Now.ToString() + "')";