function BindDashBoradData(EventTypeCode) { try { BlockUI(); $.post(CommonURL + "Dashboard/BindDashBoradData", AddAntiForgeryToken({ EventTypeCode: EventTypeCode }), function (data) { if (data.Result == "Expired") { SessionExpire(); } else if (data.Result != "") { alert(data.Result); } else if (data.DashBoradData != "") { $("#divMain").hide(); $("#examination-data").show(); $("#spnDashboradData").html(data.DashBoradData); if (data.ScrollNoticeDetails != "") { $("#showGridScrollNoticeDetails").html(data.ScrollNoticeDetails); } if (data.HighNoticeDetails != "") { $("#divHigh").show(); $("#showGridHighNoticeDetails").html(data.HighNoticeDetails); } if (data.LowNoticeDetails != "") { $("#divLow").show(); $("#showGridLowNoticeDetails").html(data.LowNoticeDetails); } } if (data.EventName != "") { $("#txtEventName").html(data.EventName); } UnBlockUI(); }).fail(function (error) { GetMsgBox("Error In BindDashBoradData:" + error.responseText, "E"); UnBlockUI(); }); } catch (e) { alert("Error In BindDashBoradData: " + e.message); UnBlockUI(); } }