MVC Archive

Deploying an MVC app to IIS 6

Trying to figure out how to deploy an MVC app to IIS 6 (MVC 2,3, or 4) can be quite a nuisance. If you Google it you’re bound to end up with a lot of suggestions that don’t actually work. One trick is to change the Global.asax when delpoying to an IIS 6 box, which [&hellip

Read More…

ViewBag, ViewData and TempData in ASP.NET MVC3

When using ASP.NET MVC 3 Razor I couldn’t help but wonder… when should I use ViewBag vs. ViewData vs. TempData? Finding an answer to this questions seemed oddly difficult. Different forums or blog posts contradicted each other. It’s not rocket science, but when you’re just getting started with MVC 3 it’s just one more thing that’s [&hellip

Read More…

Using jQuery to show a plain text watermark on a password textbox

I’ve found plenty of jQuery plugins to have a watermark for a textbox. However, when the textbox type is password the watermark will be displayed with asterisks instead of plain text. The trick I found is to use 2 textboxes: 1st Textbox will show the watermark 2nd Textbox is the password textbox So declare 2 [&hellip

Read More…