Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
You can use an ASP.NET HyperLink control and add the server side click event there.
Frederik
Hi,
Maybe you can use a querystring to change view.
<a href="<%#Container.CurrentPage.LinkURL%>&view=your-view">
And in your code-behind file switch the view.
if (Request.QueryString["view"] == "your-view")
{
this.OneView.Visible = false;
this.SecondView.Visible = true;
}
else
{
this.OneView.Visible = true;
this.SecondView.Visible = false;
}
Hi
I have an EPiServer:PageList on an aspx page.
<EPiServer:PageList ID="PageListControl" runat="server" EnableViewState="false" >
<ItemTemplate>
<li>
<a href="<%#Container.CurrentPage.LinkURL%> "><%# Container.CurrentPage.PageName %></a>
</li>
</ItemTemplate>
</EPiServer:PageList>
On the same page I allsow have two different views.When the page is loaded one view is active. When the CurrentPage.LinkURL is clicked I want to stay on the same page and activate the other view.
Is there any way I can get the click event for the CurrentPage link and do this.