Developer forum
E-mail notifications
Default page for current area
Posted on 08/08/2007 10:09:12
Since it's not possible to read the current area ID from session before the page has actually been visited, I would like to know how to retrieve the ID of the default page for the accessed domain/area
Replies
Posted on 08/08/2007 12:40:05
ml@acph.dk wrote:
Since it's not possible to read the current area ID from session before the page has actually been visited, I would like to know how to retrieve the ID of the default page for the accessed domain/area
hmm this seems to get the current areaID:
PageView Pageview = new PageView();
int areaID = Pageview.AreaID;
still need to get the default page though.
Posted on 09/08/2007 11:00:42
PageView Pageview = new PageView();
int pageID = Pageview.ID;
try this instead, it ought to work.
int pageID = Pageview.ID;
try this instead, it ought to work.
Posted on 10/08/2007 09:34:59
RAP wrote:
PageView Pageview = new PageView();
int pageID = Pageview.ID;
try this instead, it ought to work.
This just returns the ID of the current page that is being viewed - it doesn't return the ID of the default/top/entry page of the current area.
Posted on 16/08/2007 20:12:22
The default page will be displayed if you navigate to /Default.aspx?AreaID=XX. Does this solve your problem?
Posted on 17/08/2007 09:47:48
Sorensen wrote:The default page will be displayed if you navigate to /Default.aspx?AreaID=XX. Does this solve your problem?
jep! - that solved it, thanks.
You must be logged in to post in the forum