OA系统代码

更新时间:2023-05-25 22:58:46 阅读: 评论:0

if (!Membership.ValidateUr(LoginCheck.UrName, LoginCheck.Password))
            {
                LoginCheck.FindControl("WarmingImage").Visible = ca logictrue;
                e.Authenticated = fal;
            }
            el
            {
                CheckBox CheckUr = (CheckBox)LoginCheck.FindControl("DigitalCertificates");
                if (CheckUr.Checked)
                {
                    X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine);
                    store.Open(OpenFlags.ReadWrite);
儿童节快乐英语                    X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
                    foreach (X509Certificate2 X509 in collection)
                    {i am down
                        if (X509.Subject == "")
                        {
                            if (!X509.Verify())
                            {
                                ClientScript.RegisterClientScriptBlock(美国脱口秀节目this.GetType(), "JavaScript", "<script>alert('数据证书无效!')</script>");
                                e.Authenticated = fal;
                                break;
                            }
                        }
                    }
                }
                el
                {
                    Session["ur"] = LoginCheck.UrName;
                    e.Authenticated = true;
                }
      }
<ClientSideEvents SelectedIndexChanged="function(s, e) {
    ASPxClientUtils.SetCookie(DXGetCurrentThemeCookieName(),s.GetSelectedItem().value);
protected void Page_PreInit(object nder, EventArgs e)
    {
        string themeName = DefaultThemeName;
        if (Page.Request.Cookies[GetThemeCookieName()] != null)
        {
            themeName = HttpUtility.UrlDecode(Page.Request.Cookies[GetThemeCookieName()].Value);
        }
        string clientScriptBlock = "var DXCurrentThemeCookieName = \"" + GetThemeCookieName() + "\";";
        Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "DXCurrentThemeCookieName", clientScriptBlock, true);
        this.Theme = themeName;
}
<!--数据库配置-->
<connectionStrings>
<add name="iOfficeconnectionString" connectionString="rver=(local);uid=sa;pwd=;;"/>
</connectionStrings
……
<!--错误页面配置-->
            <卡梅伦辞职演讲customErrors mode="On" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
</customErrors
……
            <appSettings>
                <!--数据库备份位置-->
                <add key="backupExists" value="../DataBackup/" />
                <!--用户文件存储位置-->
              <add key="currenturfile" value="../UrFile/" />
              <!--公司文件存储位置-->
                <add key="companyfile" value="../CompanyFile/" />
                <!--职工头像位置-->
                <add key="EmployeePhoto考研可以提前交卷吗" value="../CompanyFile/EmployeePhoto/" />
              <!--车辆照片存储位置-->
                <add key="CarsPhoto" value="../CompanyFile/CarPhoto/"diet是什么意思 />
          </appSettings>       
……
<!--用户管理-->
<membership defaultProvider="AspNetSqlMembershipProvider" urIsOnlineTimeWindow="10" hashAlgorithmType="">
      <providers>
        <clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="iOfficeconnectionString" enablePasswordRetrieval="fal" enablePasswordRet="true" requiresQuestionAndAnswer="fal" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5"damages minRequiredPasswordLength="1" minRequiredNonalp
hanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
      </providers>
    </membership>
    <!--用户角色管理-->
    <roleManager enabled="true" cacheRolesInCookie="true">
      <providers>
        <clear />
<add 交卸name="AspNetSqlRoleProvider" type失重环境="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="iOfficeconnectionString" applicationName="/" />
      </providers>
</roleManager>……
Respon.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); //解决中文乱码
Respon.AddHeader("Content-Disposition", "attachment; filename=" +
Server.UrlEncode(file.Name)); //解决中文文件名乱码   
        Respon.AddHeader("Content-length", file.Length.ToString());
        Respon.ContentType = "appliction/octet-stream";
        Respon.WriteFile(file.FullName);
Respon.End();

本文发布于:2023-05-25 22:58:46,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/776402.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:位置   用户   文件   配置   解决   乱码   数据库   考研
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图