{
string image_name = "";
SqlCommand cmd1 = new SqlCommand("Select Image from Slider_Data where Section=@Section", con);
cmd1.Parameters.AddWithValue("@Section", ddlsection.SelectedValue);
con.Open();
SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
image_name = dr["Image"].ToString();
}
cmd1.Parameters.AddWithValue("@Image", image_name);
con.Close();
}
cmd.Parameters.AddWithValue("@Description",CKEditorControl.Text);
con.Open();
int i = cmd.ExecuteNonQuery();
if (i == 1)
{
Response.Write("");
}
con.Close();
}
}
catch(Exception ex)
{
Response.Write(ex.Message);
}
Ravi PatelRank #439 · 5.7K reputationPosted Nov 26, 2015, 12:15 AM EST
Nishant MittalRank #692 · 3.5K reputationPosted Nov 25, 2015, 10:16 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 25, 2015, 10:42 PM EST
pooja nirmalkar21 reputationPosted Nov 25, 2015, 10:59 PM EST
pooja nirmalkar21 reputationPosted Nov 25, 2015, 11:06 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 25, 2015, 11:14 PM EST
pooja nirmalkar21 reputationPosted Nov 25, 2015, 11:59 PM EST
Raja TRank #685 · 3.5K reputationPosted Nov 26, 2015, 12:17 AM EST
pooja nirmalkar21 reputationPosted Nov 26, 2015, 1:38 AM EST
Nishant MittalRank #692 · 3.5K reputationPosted Nov 26, 2015, 2:36 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts