如何在web.config中配置默认启动页?

2025-03-20 18:28:24
推荐回答(2个)
回答1:

可以通过appSettings进行配置,在节点中插入




string homeurl=System.Web.Configuration.WebConfigurationManager.AppSettings["home"];
Response.Redirect(rooDir +homeurl );

-----------
没个key可以配置每个不同的值
希望对你有帮组

回答2: