摘要:项目中进行https请求时遇到这样的调试错误,内部错误:未能为 SSL/TLS 安全通道建立信任关系。错误页面:根据验证过程,远程证书无效。经过分析,在浏览器中打开要进行一个安全确认。就是这个对话框引起的问题。在网上搜了一下一般的解决办法,但是搜的内容比较少,现在在这里总结一下。using System;using System.Data;using System.Configuration;us...
阅读全文
摘要:1 2 3 30 31 32 TestUpLoad
阅读全文
摘要:在asp.net中防止按钮多次点击提交的办法! 为提交button 加上下面的属性: System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("if (typeof(Page_ClientValidate) == 'function') { "...
阅读全文
摘要:protected string GetUrl() { //取本页URL地址 //2004-3-3 wskyo string strTemp = ""; if (Request.ServerVariables["HTTPS"] == "off") { ...
阅读全文