web.config [英] web.config

查看:73
本文介绍了web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个网站.

我想将样本asp.net网站保留在一个子目录中,例如SAMPLE.

我在服务器的根目录中有这个SAMPLE.问题是我想从我的主要网站为驻留在SAMPLE文件夹中的那些应用程序提供链接.

每当我单击链接时,它都会出现错误,所以我需要帮助来配置主网站的web.confog文件,以便我可以直接访问那些示例网站.

hello every one.

I have a web site.

I want to keep my sample asp.net websites in a subdirectory, say SAMPLE.

I have this SAMPLE on my server''s root directory. The problem is that I want to give links for those applications residing inside SAMPLE folder from my main web site.

Whenever I''m clicking the links it''s giving an error so I need help to configure my main website''s web.confog file, so that I can directly visit those sample websites.

推荐答案

这是您想要的吗?
This is what you want?
<location path="SAMPLE/default.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>


这篇关于web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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