Ejemplo n.º 1
0
 protected void btnDelete_Click1(object sender, EventArgs e)
 {
     try
     {
         hdnCityId.Value = Request.QueryString["cityid"].ToString();
         int    cityId   = Convert.ToInt32(hdnCityId.Value);
         string videoURL = "";
         int    result   = 0;
         result = objAdmin.DeleteVideocity(cityId, videoURL);
         if (result == 1)
         {
             txtVideoUrl.Text = "";
             string popupScript = "alert('" + (string)GetLocalResourceObject("MsgDeleteURL") + "');";//URL Delete successfully
             ClientScript.RegisterStartupScript(Page.GetType(), "script", popupScript, true);
             _BindCityContents(cityId);
         }
         else
         {
             string popupScript = "alert('" + (string)GetLocalResourceObject("MsgTryAgagin") + "');";//Please Try again!
             ClientScript.RegisterStartupScript(Page.GetType(), "script", popupScript, true);
         }
     }
     catch (Exception ex)
     { }
 }