ASP.NET MVC Relative URL for Homepage
It has been awhile since I worked with ASP.NET MVC due to work and many other activities, but I wanted to get back into it since I have always loved programming. One of the first issues I ran into when publishing my site was a pretty simple one, I needed to change the menu button for Home to link back to the root of the site. Very easy and basic to do, I could just hard code the root of the site into the HTML, i.e.
<a href="http://www.suhokdesigns.com">Home</a> …
Creating Custom Brush for SyntaxHighlighter
Customizing Body Summary in Orchard
In Orchard, the content summaries are displayed with a limit of 200 characters and a default "more" link after the body summary. I felt the summary length was much too short, and I wanted to customize how the "more" link was displayed using an icon in the link. Surprisingly the first part was quite easy, it was the latter part that took a bit more effort to tweak.
I found the file where the summaries were being created, it exists in the Orchard.Core/Common/Views/Parts.Common.Body. …
ASP.NET MVC Accepting HTML Input from View
"A potentially dangerous Request.Form value was detected from the client..."
This is a built-in security mechanism to prevent Cross-Site Scripting (XSS) or other forms of injection attacks. However for my blog, I needed to be able to accept HTML tags for the blog posts, so I did some research and found two primary ways around this problem.
Welcome to my Blog
Hello, 你好, guten tag, selamat siang, 안녕하세요, こんにちは, hola!
Welcome to my blog! I have created this blog for a few reasons, the first reason as I wanted to re-design and develop a new architecture for my site (yet again!). Another reason is I wanted to have a way to remember things I have learned along the way and share them with others that might be interested in the same things. The last reason is a secret :-).
In this blog I want to cover a wide range of topics including: programming, …