There was an error attaching the debugger to the IIS worker process for url xxx for role instance deployment(xxx).ProjectName.Web_IN_0. Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server. This error can haunt you […]
Dynamic Lambda Expression For Sorting A List / Collection Using Complex Types Without Implementing IComparable
You can download the sample project for the article here. ComplexLinqSort.zip (259.64 kb) In my previous post we discussed on sorting the list / collection using dynamic lambda expression for properties. In this article we will see how to sort on complex properties. So what is a complex property. Consider the class diagram as shown […]
Tip: Update Collection / List Property Using Linq
If you hate doing a for loop or for each loop just to update a property in your list / collection object, below is how you can do it using Linq in a single statement. list.ForEach(item => list.Description = “Hello”);
Releasing Single / Multiple Files To Pre Compiled ASP.net Web Site
We most the time run into the issue where we need to release a patch which requires a change in one or multiple code behind files and since your site is compiled, you are put into the state that you have to do a deployment instead of releasing those files. But, fortunately you can do […]
Tip : How To Scroll To Validation Summary
ASP.net by default calls the function window.scrollTo(0,0) after the validation failure from ASP.net validators but not always we have the validation summary control placed at the top. There are instances where we need to place validation summary at some other location but by doing this, instead the user being scrolled to see the validation error, […]
Localization / Multilingual Support Using Resource Files In .net
Download Demo Localization.zip (258.06 kb) Localization for a multilingual application is every developer’s nightmare. With .net it is not a tough programming as most of the algorithm is already available. Well in this article we will discuss on how we can achieve localization using resource files. In our sample attached, I have added a resource […]
Tip: Customizing / Adding Image To Radio Button List Control
Today I will share a tip through which you can customize the way your RadioButtonList control will look. Below is a simple code which will enable to add me icons for the radio buttons in the list. protected void ErrorPriority_DataBound(object sender, EventArgs e) { try { foreach (ListItem item in this.ErrorPriority.Items) { Priority priority = […]
Unleashing ASP.net Calendar Control
Download Sample CalendarDemo.zip (171.18 kb) Introduction Calendar control is as important as a normal text box control in any application. Most of any application which needs data entry will definitely need a calendar control at some part. ASP.net has a very good calendar control which we often ignore without exploring how far it can be […]