小编n3t*_*3tx的帖子

我怎么能用CheckBoxFor使用int?

我需要帮助来构建一个获取int值的CheckBoxFor.

类似于:@ Html.CheckBoxForInt(m => m.foo.intValue)

应检查intValue = 1是否未检查

谢谢

custom-controls razor asp.net-mvc-3

7
推荐指数
2
解决办法
9335
查看次数

ASP.NET 5 RC1-Final中不存在UseWindowsAzureActiveDirectoryBearerAuthentication

早些时候我们用过

app.UseWindowsAzureActiveDirectoryBearerAuthentication(
            new WindowsAzureActiveDirectoryBearerAuthenticationOptions
            {
                Audience = ConfigurationManager.AppSettings["ida:Audience"],
                Tenant = ConfigurationManager.AppSettings["ida:Tenant"],

            });
Run Code Online (Sandbox Code Playgroud)

通过Azure进行身份验证.问题是,今天我们升级到ASP.NET 5 RC1-FINAL,现在这个方法不再存在了.

我在网上搜索了其他解决方案,但我发现的是使用了一些第三方身份服务或.UseOAuthBearerAuthentication,这在RC1-Final中不可用.

azure asp.net-web-api2 asp.net-core

5
推荐指数
1
解决办法
2714
查看次数