Hi
I am using the following code to get current page id
string CurrentPageLink = CurrentPage.Property["PageLink"].ToString();
or
string CurrentPageLink = CurrentPage.PageLink.ToString();
what I get from the above code is PageId+Some id is suffixed with pageid. (eg. 248_448), but I need only 248.
Because of this I am unable to compare the pageid with other pages.
Please help to get the page id alone, thanx in advance.
Murali
Hi Snive
Thanks for the reply,
Yes I am testing in Editmode, when I see in portal it comes correctly, but our client may use edit mode also.
Please help.
Murali