更新时间:2023-02-01 07:46:06
Your second return
statement will never be reached. Execution stops after javascript:return prepareSave()
.
Looks like you want to return true if both functions return true - therefore, do:
btnSearch.Attributes["OnClick"] = javascript: return prepareSave() && prepareSearch();