asp.netasp.net-dynamic-data

Set a default page in dynamic data


I am trying to set up a default page for my dynamic data website. The problem is that it's a template.

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


Solution

  • 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");
    }