A simple way to create a Microsoft Word document from a template in Asp.net/C#
I recently had the need to create a Microsoft Word document from a template. I initially tried using Office Web Components and Interop but all that really wasn’t worth the trouble. I wound up doing global replacements in the html of html Here is how I did it: Open up your template document in […]
How to Fix: Canonical Urls with IIS 7’s Url Rewrite feature for https
The Problem: You want to make your website all SEO friendly by creating a single, canonical url. For example, if someone types in https://www.stronico.com, you want them to be redirected to https://stronico.com (Google likes it this way). You do some research and discover that all of the default code and documentation for handling canonical Urls […]
How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error
The Problem: You have a brand new Windows 2008 server and you are testing your web application and trying to send an email. Every time you try to send an email via the web application you get the following error “System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25” The […]
What is the best jQuery modal popup method?
I do not know that much about jQuery, or any of it’s offshoots (jQueryUI, etc) but I do have a need for modal popups. As I am building the website in ASP.net MVC, instead of ASP.net webforms I have decided to use the jQuery platform instead of the standard Ajax Toolkit. I have looked over […]
How to fix invisible view in ASP.net mvc
This is not the most significant I know, but the goal is to document every problem that took more than 15 minutes to solve, and I did try the more complicated methods before I tried the obvious one, so here it is. The Problem: When programming in ASP.net MVC in Visual Studio 2008 you create […]