Posts Tagged c#
ASPDotNetStoreFront: Adding Topic to XML Packages or .aspx Pages
This is how you add a DotNetStoreFront’s Topic into a XMLPackage:
<xsl:value-of select="aspdnsf:Topic('TOPIC_NAME')" disable-output-escaping="yes"/>
Now, if you want to add it to a .aspx or .ascx page on dnsf:
<aspdnsf:Topic runat="server" ID="Topic1" TopicName="TOPIC_NAME" />
Quick n Easy – Forms Authentication – Web.conf
I use the login page from here:
http://www.15seconds.com/issue/020220.htm
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
<authentication mode="Forms">
<forms loginUrl="FeedBack_Admin/login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="admin" password="pass"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="*" />
</authorization>
</system.web>
<location path="FeedBack_Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="Content_Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>