function setName() { var selectedRow = $("[comboname='UserID']").combogridX("getSelectedRow"); var userNameTD = $("label[for='Name']").parent().next(); if (selectedRow != null) { userNameTD.html(selectedRow.UserName); } else { userNameTD.html(" "); } queryCoursematerial(); } function Misconduct_Save() { $(document.forms[0]).submit(); } function queryCoursematerial() { if ($.data($("[comboname='UserID']")[0], "combogridX") && $.data($("[comboname='SchoolyearID']")[0], "combobox")) { var schoolyearID = $("[comboname='SchoolyearID']").combobox("getValue"); var userID = $("[comboname='UserID']").combogridX("getValue"); var url = CMS_SystemConfig.VirtualDirectoryPath + "/Misconduct/GetCoursematerial?schoolyearID=" + schoolyearID + "&userID=" + userID; if (schoolyearID != nonSelect) { CMSFunction.ComboGrid.SetValue($("[comboname='CoursematerialID']"), "", ""); $("[comboname='CoursematerialID']").combogridX("reload", url); } } }