control has a property SelectedItemId
. It returns the ID of the currently selected item. Then, you could use GetContent(Guid id)
method in order to get the content item which represents an IContent
interface provides a property (Url
) that gets/sets the url of the item.
Note that if you don't want to display the content of the item, you could set Visible="false" for the control with ID "content
" in the ~/Sitefinity/ControlTemplates/Generic_Content/ContentViewSingleItem.ascx
|<asp:Panel ID="pnlContent" runat="server" CssClass="sf_genericContent">
| <asp:Literal ID="content" runat="server" Visible="false"></asp:Literal>
Do let us know if you need any further assistance.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.