Tagged: asp.net

0

Beginners’ guide for ASP.NET 4.0

Just came across to a nice article explaining what is ASP.NET and what it is not. It is worth to read for complete beginners. http://www.code-magazine.com/Article.aspx?quickid=100163

1

Microsoft Days 2010 Bulgaria – Extensible Output Caching with ASP.NET 4 Session

Microsoft Days 2010 Bulgaria will take place in Sofia on 30-31 March 2010. The conference consists of numerous valuable lecturers and the whole list can be seen at http://www.msbgregistration.com/Lecturers.aspx. I will be presenting a session titled as Extensible Output Caching with ASP.NET 4. Here is a brief description of my session: Through ASP.NET 1 to 3.5, output caching was stuck...

1

The resource object with key … was not found

If you ever face problems with your resources and somehow the ASP.NET application/website refuses to load them, consider checking if your website path is readable by the process owner user of the website application pool.

0

Web Deployment with VS 2010 and IIS

Visual Web Developer Team posted an interesting post on their blog today. It gives a short description of how web deployment scenarios will be handled in Visual Studio 2010. Of course including deployment of database, IIS settings and transformation of the Web.config file. Personally, I am really excited to see these features in VS 2010. It will definitely be better...

3

HttpPostedFile.FileName browser dependent behaviour

Even though these kind of variables must have some standards (may be it already has), there are differences in practise. Be careful with the FileName property of HttpPostedFile class when you want to work on a file being uploaded by visitors of your page because the FileName value that you will get on Internet Explorer and Firefox are different. If...

1

Extension methods don’t compile? No panic!

I came across to a really strange problem today. Some extension methods that I have copied from another project just did not want to be compiled at all. ‘string’ does not contain a definition for ‘MethodName’. I have checked everything, including clearing the temporary ASP.NET files within framework folder (C:\Windows\Microsoft.NET\Framework\…), restarting Visual Studio and even restarting the OS. The target...

0

Some useful UpdatePanel extensions

I want to share some pretty basic and useful UpdatePanel control extensions with you. Method names are self explaining so I will not go deep in details. public static void AlertOnLoad(this UpdatePanel updatePanel, string key, string message) { message = message.Replace(“‘”, “\'”).Replace(“\r\n”, “”).Replace(“\n”, “”); message = “alert(‘” + message + “‘);”; AjaxControlToolkit.ToolkitScriptManager.RegisterStartupScript(updatePanel, updatePanel.GetType(), key, message, true); } public static void...

0

How to generate RSS feeds without any 3rd party components

RSS feeds are widely used in today’s internet world. Thus we, developers, have to implement it on our websites and projects most of the time. There are many free and paid components that generates RSS feeds but in fact you may generate it by yourself as well. I will post a generic handler’s source code to show you how to...

2

Easiest way of global error handling in an ASP.NET application

Since there are different ways of global error handling in ASP.NET applications and you have to implement the one that best fits into your project’s architecture, I will not be discussing all the possibilities that ASP.NET provides you. However, I will just share a small code snippet that you can use to catch unhandled exceptions and write a small piece...