Tag: asp.net
-
How to recover from “Object reference not set to an instance of an object” error blocking access to Umbraco control panel
I shocked when I found that I couldn’t access Umbraco control panel of one of the most important websites that my client has. It threw “Object reference not set to an instance of an object” error once I successfully logged in to the control panel. After making backup and small research I found a way…
-
How to get Table Cell or Text Box value in SSRS
To get the Table Cell or Text Box value in SSRS you can do like this: ReportItems![Text Box name].Value Note: replace the [Text Box name] with the name of Text Box you want to access.
-
Umbraco: How to get Media in code-behind
To get a media (i.e.: image) in code-behind you can do it like this. var currentPage = umbraco.presentation.nodeFactory.Node.GetCurrent(); var media = new umbraco.cms.businesslogic.media.Media( Convert.ToInt32(currentPage.GetProperty("[property]").Value) ); string imageUrl = media.getProperty("umbracoFile").Value.ToString();
-
VS2010 Tips #14: How change the default browser used in debugging ASP.NET MVC 2 application
Changing default browser used in debugging ASP.NET MVC 2 is a bit tricky in Visual Studio 2010. To use ScottGu’s steps, you will need to add new ASPX page first. But unfortunately if you delete the page then close the application, anytime you rerun the application then the change you did will lost (it backs…
-
ASP.NET MVC 3 Preview 1 released
I must admit that the ASP.NET MVC team is so consistent in developing ASP.NET MVC framework to be better and better. Just few months after the release of ASP.NET MVC 2, now the Preview 1 of ASP.NET MVC 3 has been released. Yes, Preview 1 maybe not interesting for some of you but it’s a…