protected void btnClearFilter_Click(object sender, ImageClickEventArgs e) { try { DDLModule.SelectedValue = "0"; DDLVeseelType.ClearSelection(); DDLVetType.ClearSelection(); DDLStatus.ClearSelection(); Add_Status(); txtNumber.Text = ""; txtVersion.Text = ""; txtQuestionnaire.Text = ""; UpdAdvFltr.Update(); BindQuestionnaire(); if (hfAdv.Value == "o") { String tgladvsearchClr = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr", tgladvsearchClr, true); } else { String tgladvsearchClr1 = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr1", tgladvsearchClr1, true); } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
/// <summary> /// To bind Vessel type /// </summary> public void Get_VesselType() { try { BLL_Infra_VesselLib objBLL = new BLL_Infra_VesselLib(); DataTable dtVesselType = objBLL.Get_VesselType(); DDLVeseelType.DataSource = dtVesselType; DDLVeseelType.DataTextField = "VesselTypes"; DDLVeseelType.DataValueField = "ID"; DDLVeseelType.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }