Recently, I had a problem that only occurred when I debugged my application through Visual Studio. One and only one (out of dozens) of variables became ‘stuck’, if you will. I always got the error message that the variable was undefined. The error remained even when I completely removed the variable and named it something […]
The scenario is this: You have an MVC application which uses the JQuery UI Tabs implementation. Everything is fine until you make a server postback with MVC. The ‘Selected Tab’ resets to zero (the first tab). Have no fear. The solution is not hard at all.
Let’s say you’re adding some newer CSS changes to your site and for some reason, they work fine in Chrome or Firefox, but not showing up like they should in IE10.
We’ve all experienced it – we’ve populated a listbox and there are blank items. Of course, the best way to fix this is to fix the data. However, let’s say you have a deadline and need to get rid of those blank items first.
if you’re running Visual Studio (for me, it was 2010), and you start debugging your ASP.Net site, and you get the error in the subject line (with your specifics where the dots are), it can be a harrowing experience trying to find the solution.
Using the textbox HTML Helper (HTML.TextBox), what you have is a late-bound object which is populated basically first with the name or id of the textbox on the page. The second parameter (although there are other overloads) is the class object. For instance: Html.Textbox(“CustomerName”, Model.CustomerName) It works the same in both ASP.Net and Razor syntax. […]
Everyone has seen this before – you are typing away in a TextArea (inside a form) and there’s a little message telling you how many characters you have left before the maximum. It turns out that, using Jquery in MVC, that functionality is very easy to implement.
I just saw a demo on the Page Inspector inside Visual Studio 2012. This is amazing. When you get a chance check it out. Just right click on the page and view in Page Inspector. You get an ‘F12 Tools’-like interface in which you can check and change CSS and find out whether it’s in […]
If you’re getting the error in the subject line, and it seemed to come out of the blue, there might be a very easy fix to this.
As we all know, from developing Web Forms, using a Gridview, when we access a database and retrieve a Date column, sometimes (for me, most of the time) the string we get back isn’t very pretty. It normally has the time included, etc. Of course, for the Gridview, all we had to do was go […]
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF