Hii all here,
Please help..
if (e.CommandName == "delete")
{
int rowId = Convert.ToInt32(e.CommandArgument.ToString());
Label lblHoardingId = gvPostedHoarding.Rows[rowId].FindControl("lblHoardingId") as Label;
HId = Convert.ToInt32(lblHoardingId.Text.Trim());
lblMsg.Text = objHoarding.HoardingDetailsDelete("delete", HId);
//Session["HoId"] = lblHoardingId.Text;
HoardingDetailsOwner();
//ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Hoarding ID' '" + Session["HoId"].ToString() + "' 'deleted succesfully.');", true);
ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Hoarding ID + HId + deleted succesfully.');", true);
}

Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 9:57 PM EDT
Try like this
ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Hoarding ID " + HId + " deleted succesfully.');", true);
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 26, 2013, 10:08 PM EDT
you can also try like this:
Response.Write("
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts