This blog is about software development; patterns; best practices. Technologies I prefer: C#, C, .NET web stack, XML, XSLT, Razor, API's, Sitecore, CMS, and and more. This blog will primarily be about issues I encounter on the way, in order to remember it better myself.
Monday, November 16, 2009
XsltUrlEncodingInDotNet
<msxsl:script language="JScript" implements-prefix="xmlnamespaceofchoice">
<![CDATA[
function urlEncode(strURL)
{
return encodeURIComponent(strURL);
}
]]>
</msxsl:script>
and then calling the
<xsl:value-of select="xmlnamespaceofchoice:urlEncode(string(//myElement))" />
voila
Friday, November 6, 2009
Sitecore editor hassles
within the sitecore editor:
"Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: no segments* file
found in Sitecore.Data.Indexing.FSDirectory@D:\Inet\Websites\Development\Website\indexes\master\system:
files:
"
Just a plain .NET Exception page... What caused the error?
/*TODO: description LUCENE, stackoverflow,*/
FIX:
Goto sitecore "control panel", choose "Database" and "Rebuild the
Search Index" and reload sitecore. Done :)