在动态数据中设置默认页面

发布于 2024-07-14 09:36:02 字数 131 浏览 5 评论 0原文

我正在尝试为我的动态数据网站设置一个默认页面..问题是它是一个模板,

所以它会是这样的:Orders/List.aspx

人都可以帮我解决这个问题..Thanx

任何

Owais F

i am trying to set up a default page for my dynamic data website.. the problem is that its a template

so it would be something like this: Orders/List.aspx

can anyone please help me out with this..

Thanx

Owais F

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

酷遇一生 2024-07-21 09:36:03

您可以在 DynamicData 文件夹外部创建一个 Default.aspx 页面作为默认页面,然后将该页面重定向到 Orders/List.aspx 页面。

protected void Page_Init(object sender, EventArgs e) {
   Response.Redirect("Orders/List.aspx");
}

You can create a Default.aspx page outside of your DynamicData folder as the default and just have that page redirect to the Orders/List.aspx page.

protected void Page_Init(object sender, EventArgs e) {
   Response.Redirect("Orders/List.aspx");
}
-黛色若梦 2024-07-21 09:36:03

那么您是说您希望一个目录中的默认页面将您带到另一个目录中的页面?

我不相信你能做到这一点,相反,你必须将目录中的 ASPX 页面重定向到其他目录中的页面。

So you are saying you want the default page in one directory to take you to a page in another directory?

I don't believe you can do that, rather, you have to have the ASPX page in the directory redirect to the page in the other directory.

一身软味 2024-07-21 09:36:03

使用默认页面模板没有问题。 您需要在 IIS 中正确设置虚拟目录。 阅读此信息,它应该会有所帮助。

There's no problem with using a template for your default page. You need to set up the virtual directory properly in IIS. Read this information, it should help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文