如何在我的页面asp.net中获得安全? [英] how can get secuirty in my page asp.net?

查看:76
本文介绍了如何在我的页面asp.net中获得安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用一个页面btn.aspx.here我创建了5个按钮。我希望在打开我的页面时首先应该打开btn.aspx页面。我可以得到这些安全吗?我也是使用下面的代码,但它不起作用

 <   location     path   =  BtnChose.aspx >  
< system.web >
< 授权 >
< allow users = * / >
< / authorization >
< / system.web >
< / location > - >

解决方案

首先制作BtnChose.aspx您的默认启动页面,您只需转到解决方案资源管理器,右键单击页面,然后单击设置为起始页面。



为了安全起见你指定所有用户都应该能够看到该页面,所以在您将页面设置为默认页面后,您实际上可以在浏览器中查看该页面,It Works ...

hello
I am using one page btn.aspx.here I created 5 button.I want that when open my page first should open btn.aspx page.how can get these securty?I also using this code below but it is not working
.

<location path="BtnChose.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
      </system.web>
    </location>-->

解决方案

First to make "BtnChose.aspx" your default startup page, you just go to your solution explorer, right click on the page and then you click on "Set as Start Page".

For security what you specified there is that all users should be able to see the page, so after you set the page as your default page, and you can actually view the page in your browser, It Works...


这篇关于如何在我的页面asp.net中获得安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆