Tutorial :set a default page in dynamic data



Question:

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


Solution:1

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


Solution:2

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.


Solution:3

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »