Set breakpoints in your MVC views with Visual Studio 2010

SEE FULL POST

Set breakpoints in your MVC views with Visual Studio 2010Asp.net, MVC

by Roberto on July 15, 2012 with 0 comment

I don’t know exactly why, but I’ve never been able to set any breakpoint directly into my MVC views while using Visual Studio 2010. Although it allows you to do so into the razor code blocks, it doesn’t seem to work well when dealing with inline razor code.

Breakpoint inside a code block

Breakpoint inside a code block

Thankfully, new Visual Studio RC 2012 allows you to set any breakpoints in your views no matter where they are placed inside the view, but if you still work with Visual Studio 2010 and you haven’t still solved this problem, this will come very handy.

continue reading ...

Error when sending mail on .NET 4

SEE FULL POST

Error when sending mail on .NET 4Asp.net

by Roberto on March 29, 2011 with 0 comment
Recently, I upgraded one of our web applications from .NET 3.5 to 4 and surprisingly I started to get some weird errors whenever the application tried to send emails. If you're getting something like this: Failure sending mail, blah, blah, then keep reading and you will find out how to solve it.

continue reading ...

Tags:
Trying to get ClientID property from a programmatically added control

SEE FULL POST

Trying to get ClientID property from a programmatically added controlAsp.net

by Roberto on March 3, 2011 with 0 comment

Recently I had to face the following scenario: I was trying to create a customized gridview which automatically loaded an also customized template for the pager that fully integrated with some custom object that I was receiving from an external library.

In short, I needed to generate some controls in a dynamic way and decorate them with client capabilities.

continue reading ...

Tags:
Panel’s defaultButton property and linkButtons not working in Firefox

SEE FULL POST

Panel’s defaultButton property and linkButtons not working in FirefoxAsp.net

by Roberto on February 18, 2010 with 1 comment

Recently I changed all the buttons of the website I am developing right now for linkButtons. I was searching for some hover behaviour cross-browser compatibility. As you may know, the greatest web depeloper’s friend, a.k.a. Internet Explorer 6, does not support the hover CSS pseudo-class but in<a> tags. And this is a shame because all the hover effects in buttons will never work in IE6 unless you do the old javascript image source trick, and we don’t want to use it because we love CSS and, besides that, the user experience is better without that old javascript.

continue reading ...

Tags:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close

Google+