MS에서 ASP.NET에서 사용하기 쉽도록 만든 java script library.
1. call local web service
Sys.Net.WebServiceProxy.invoke("Service Address", "method name", "IsPost Action", "Parameters", "return action")
- function check_activateion_requested(user_id) {
- Sys.Net.WebServiceProxy.invoke(
- "/SYNCmailUtil.asmx", "IsActivationRequired", false, { userId: user_id }, inputbox_enable )} function inputbox_enable(enable) { if (enable) { document.getElementsByName('logonName')[0].readOnly = "false"; document.getElementsByName('password')[0].readOnly = "false"; } else { document.getElementsByName('logonName')[0].readOnly = "true"; document.getElementsByName('password')[0].readOnly = "true"; document.getElementsByName('logonName')[0].value = ""; document.getElementsByName('password')[0].value = ""; document.getElementById('infoLabel').innerHTML = "Activation을 할 수 없는 유저입니다."; }}