dajiangyou |
2012-10-09 10:23 |
自己的程序登录OWA页面跳转出现乱码
自己写的一个WEB程序,在自己的web程序中输入帐号密码登录到OWA偶尔会出现乱码,刷新后正常. 自己构建登录代码如下,使用的https://mail.****.cn/owa/auth/owaauth.dll" dll进行登录。 错误信息如下图,右键网页记事本打开文字信息“自定义错误模块不能识别此错误。” [attachment=1384]
- //public string LoadOWAPostJS(string strFormId, string userEmail, string pwd)
//{ // //构造的JS需要Realex发布的数据,并返回它 // StringBuilder _strScript = new StringBuilder(); // _strScript.Append("<script language='javascript'>"); // _strScript.Append("var ctlForm = document.forms.namedItem('{0}');"); // _strScript.Append("ctlForm.username.value=\"" + userEmail + "\";"); // _strScript.Append("ctlForm.password.value=\"" + pwd + "\";"); // _strScript.Append("ctlForm.submit();"); // _strScript.Append("</script>"); // return String.Format(_strScript.ToString(), strFormId);
//}
|
|