I want to add a topic to an already existing page. I have tried calling it like you would on a template or and xml pagckage and it does not work. Any ideas?![]()
I want to add a topic to an already existing page. I have tried calling it like you would on a template or and xml pagckage and it does not work. Any ideas?![]()
You can use the XSLTExtensionBase.Topic method to call any topic of your choice...![]()
Example or reference if you could please.
If the "already existing page" isn't an ASPDNSF page (like you've created a custom page from scratch or it lives elsewhere in your application) you can try using the Topic Control (.asc) file called TopicControl.ascx.
You would call this just like any other control. Add the following line to the top of your .aspx page (Underneath <%@ Page... of course):
And then call the control as follows:C#/VB.NET Code:
<%@ Register Src="~/TopicControl.ascx" TagPrefix="tc" TagName="TopicControl" %>
That make sense?C#/VB.NET Code:
<tc:TopicControl ID="TopicControl1" runat="server" TopicName="NameOfTopicHere" />
EMM for AspDotNetStorefront - Communicate effectively with your customers
Makes sense! Works like a charm! Thank you!
Use: <asp:Literal ID="AmadeUpNameofLiteral" runat="server" Text='<%$ Tokens:Topic,TopicName%>' /> for template.master (which is not an aspx page)
In an aspx page look at the manual for three ways to call.
The manual lists the following:
However, that doesn't specify how I would do it in code behind as the result of an If...Then statement. Does anyone have any sample code they could share to do this?At a direct URL, with the format: http://www.yoursite.com/t-topicname.aspx
Embedding in a .aspx page in this format: <aspdnsf:Topic ID="IDName" runat="server" TopicName="TopicName" />
In a skin template.ascx file, in this format: (!Topic Name="topicname"!)
ML9.3.1.1
SQL 2012 Express
VS 2010
Azure VM