1

Areas and ASP.NET MVC Routes Tip

Posted by Tim on August 28, 2011 in MVC

Lets say that you have several areas define in your ASP.NET MVC solution. You find that when you run your application you get the following error “Multiple types were found that match the controller named ‘Home’.”. This is because ASP.NET MVC finds all the routing definitions (i.e in each area.cs file or the global.asax) and [...]

Tags: , , ,

 
0

Using UserControl.RenderControl()

Posted by Tim on June 7, 2011 in ASP.NET, Visual Basic

Perhaps you want to reuse a usercontrol in a email? or you need to generate the html from a usercontrol for a specific purpose? Firstly, here is the code to render the html from a user control to a string builder object:    Dim sb As New StringBuilder()    Using sw As New StringWriter(sb)   [...]

Tags: , ,

 
0

Modify a Word 2007 Open XML document via C#

Posted by Tim on April 20, 2009 in .NET Framework, C#

Interesting problem that I came across here…A client requested that their system was to have the ability to load in a Word 2007 Document, perform some text manipulation routines and save the document back to the server. Firstly, you can rename a docx document to docx.zip and you can extract all of the files in [...]

Tags: , ,

Copyright © 2008-2012 Codelab Blog All rights reserved.
Desk Mess Mirrored version 1.9.1 theme from BuyNowShop.com.