AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortletRequest.GetPageID Method

Returns the ID of the portal page on which the portlet is currently displayed.

int GetPageID();

#### Return Value

The page ID.

#### Remarks

This is a new feature in portal version 5.0; this method throws `ProtocolNotSupportedException` when used with any prior version of the portal. The administrator must configure the portal to send the Page ID to the portlet.

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | The request is not gatewayed.
ProtocolNotSupportedException | Used with version of the portal earlier than 5.0.
NotInRequestException | The administrator has not configured the portal to send the Page ID to this portlet.

#### See Also

IPortletRequest Interface | Plumtree.Remote.Portlet Namespace