IIS Articles Archives September 1, 2010
Posted by Abhijit Jana in .NET 4.0, General, IIS.Tags: codeproject, ASP.Net, Debugging, IIS, WorkerProcess, Microsoft Visual Studio, Remote Debugging, Internet Information Services, Servers
1 comment so far
In this blog post I have going to list out all of my IIS articles that I have published over last few years. Why I am going to do such post ? Because, I have been asked many question on IIS and different debugging options related with IIS and ASP.NET Applications by many readers. Many times I have had given reference of my different articles. This post will be the single reference for all of those articles. In this blog post I have given link and small overview of all of my IIS articles, so that I can refer a single articles to who ever wants to learn about IIS.
1. Beginner’s Guide : Exploring IIS 6.0 With ASP.NET
This article describes details of IIS configuration, Virtual Directory creation, Application Pool Creation, Application Pool settings, IIS Request processing for ASP.NET .
How to sort ASP.NET DropDownList based on DataValueField or DataTextField using LINQ? August 8, 2010
Posted by Abhijit Jana in .NET 4.0, ASP.NET, ASP.NET 4.0, General, Tips and Tricks.Tags: codeproject, ASP.Net, How To, Beginners, DropDownList, Sorting, LINQ, KeyValuePair, Sorting of DropDownList using LINQ
6 comments
Sorting ASP.NET Dropdown list is very common requirement for any of the web application development. To Implement this features sometimes developers used to iterate through each and every item and create a sorted list of element then reassign the same source to dropdownlist or sort the element at source itself. But this thing can be done easily using LINQ. In this post I am going describe how you can sort a ASP.NET DropDownList based on either of DataTextField or DataValueField using LINQ and list of KeyValuePair elements as DataSource.
To start with the application, let’s consider you have following List of employee data as datasource of the DropDownList.
/// <summary>
/// Create List Of Employee
/// </summary>
List<KeyValuePair<int, string>> employees = new List<KeyValuePair<int, string>>
{ new KeyValuePair<int,string>(1,"Abhijit"),
new KeyValuePair<int,string>(2,"Rahul"),
new KeyValuePair<int,string>(3,"Kunal"),
new KeyValuePair<int,string>(4,"Atul"),
new KeyValuePair<int,string>(5,"Abhishek"),
};
In the employee list collection, you have added KeyValuePair for each element, where Key is employee ID and Value is the employee name. The most interesting part of using KeyValuePair is you can bind either of Key or Value with the DropDownList as per your requirement.
Now let’s bind the DropDownList with the DataSource
“CompressionEnabled” Session in ASP.NET 4.0 June 2, 2010
Posted by Abhijit Jana in .NET 4.0, ASP.NET, ASP.NET 4.0.Tags: .NET 4.0, asp.net 4.0
1 comment so far
Session is the most important state management mechanism for a web application. In ASP.NET we are having two type of state management
1. In Process
2. Out Process
“In process” is the by default session storage mode for ASP.NET Web application. When it comes under Out Process we can use either of state server or SQL Server to persist our session data.
Here I am going to describe one new features added in ASP.NET 4.0 realted with Session. If you want to know about when to use session, what session mode to use, how to configure the session storage please read one of my article “Exploring Session in ASP.NET” published at CodeProject.
In case of In Process, session data stored in In memory of worker process. But when we are talking about “OutProc” session mode, we need to ensure that session data should be “Serialized” first . So, when we are moving session data from Web Server to Out Process Server ( State Server or SQL Server ) it can be a performance overhead based on the size of data that we are stroing in Session.
ASP.NET 4.0 comes us with a new option for compressing the Session data with Out Process Session mode. To enabling this functionality we need to add “compressionEnabled=”true” attribute with the SessionMode in web.config . Web.config entry would be look like below,
<sessionState mode="SQLServer" sqlConnectionString="Integrated Security=SSPI; data source=.;" <em>compressionEnabled="true" </em>allowCustomSqlDatabase="true">
This will compress / Decompress the session data during serialization / deserialzation of session data. ASP.NET 4.0 used System.IO.Compression.GZStream class to compress the session mode. One more important things to remember that use of compression mode is useful when we are storing large number of data in session because for every request it will going to use Gzip Compression/ Decompression going to be used to access the session variable.
Hope this will helps you !
CSS Friendly Menu Control in ASP.NET 4.0 May 18, 2010
Posted by Abhijit Jana in .NET 4.0, ASP.NET, ASP.NET 4.0, Visual Studio 2010.Tags: asp.net 4.0, codeproject, RenderingMode, Visual Studio 2010
5 comments
It is very much easier to apply CSS when we have ul,li elements as the HTML content. If we look into ASP.NET Menu Control till Version 3.5, its render as Table-TR-TD Tag. Though Table/Tr/Td is quite useful to display tabular data but sometime creates a big problem when we need to do more work with CSS. To overcome this problem we generally used CSS Friendly adapter to render the ASP.NET Control in ul/li mode.
ASP.NET 4.0 makes the things easier for web developer by providing “RenderingMode” properties. Here we can specify RenderMode of a ASP.NET Menu control. Which define the what will be the HTML Render Content Type. Bydefault mode is “List” which means control will be render as ul/li.
As per the above diagram we can see that there are three mode available. We can use any one of them as per the requirement. (more…)
ViewState Control in ASP.NET 4.0 May 16, 2010
Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, My Articles, Visual Studio 2010.Tags: asp.net 4.0, C#, code, codeproject, View State, Visual Studio 2010
9 comments
View State is one of the most important and useful client side state management mechanisms. It can store the page value at the time of post back (Sending and Receiving information from Server) of your page. ASP.NET pages provide the View State property as a built-in structure for automatically storing values between multiple requests for the same page.
we generally used “EnableViewState” Properties for both Page Level and Server Control Level to maintain the view state. Till ASP.NET 3.5 Version, Page Level view state control treat as highest priorities. Which means If we set EnableViewState= “False” in page level that will automatically derived by all the server side control. In that case if we set “EnableViewState=”True”” for any server side control will treat as false, as we have defined them “False” in Page Level.Here is one complete article on ASP.NET 2.0/3.5 View State , which may helpful for you
Now, let’s have a look into the changes in ViewState Control in ASP.NET 4.0. There is a massive change in View State Control in ASP.NET 4.0 which is very much helpful for developer also. Asp.net 4.0 added a new property to Page object and server controls called ViewStateMode. (more…)
IntelliTrace Debugging – Video Demo May 10, 2010
Posted by Abhijit Jana in .NET 4.0, General, Visual Studio 2010.Tags: codeproject, IntelliTrace, Debugging, VS 2010, VideoTutorial
1 comment so far
Recently I have published one complete tutorial on Visual Studio 2010 Debugging. Which covered almost all main features of debugging in Visual Studio 2010 like Basic of Breakpoints, breakpoint labeling, data tips, multithreaded debugging, and parallel debugging and IntelliTrace debugging. You can read the complete article from My Blog or from CodeProject.
While preparing the article I had created one small video on IntelliTrace Debugging which will show you the demo of using IntelliTrace Debugging. Hope you will enjoy this video.
Mastering in Visual Studio 2010 Debugging May 7, 2010
Posted by Abhijit Jana in .NET 4.0, General, My Articles, Visual Studio 2010.Tags: asp.net 4.0, C# 4.0, Debugging, IntelliTrace, Multithreaded Debugging, Parallel Debugging, Visual Studio 2010
2 comments
Visual Studio IDE gives us a lot of tools to debug our application. Sometimes debugging activity takes a very long time to identify the root cause. But VS IDE provides a lot of handy tools which help to debug code in a better way. Debugger features include error listing, adding breakpoints, visualize the program flow, control the flow of execution, data tips, watch variables and many more. Many of them are very common for many developers and many are not. In this article, I have discussed all the important features of VS IDE for debugging like Breakpoint, labeling and saving breakpoints, putting conditions and filter on breakpoints, DataTips, Watch windows, Multithreaded debugging, Thread window, overview of parallel debugging and overview of IntelliTrace Debugging (more…)
Visual Studio 2010 – Launch Date – Today April 12, 2010
Posted by Abhijit Jana in .NET 4.0, General, Visual Studio 2010.3 comments
Finally the day has come. 12th April(Today) is the launch date of .NET Framework 4.0 with Visual Studio 2010. VS 2010 Beta 1 was launched on 18th may 2009. After five months Microsoft launched VS 2010 Beta-2 on 21st October 2009. Microsoft released the Release candidate (RC) Version of VS 2010 on 10th Feb 2010. Now, finally 12th April -2010 is going to be biggest day for .NET world as Visual Studio 2010 launching today.
Visual studio 2010 and .NET Framework 4.0 came up with many new features for next generation developers. Below are the few lists of features that are available with VS 2010
Visual Studio 2010 IDE and .NET Framework 4.0
- Call Hierarchy of methods

- A New Quick Search
- Multi-targeting
- Multi-Monitor
- Parallel Programming
- Visual Debugging
- XSLT Profiling and Debugging
- The XSD Designer
- Code Navigation in Class Files
- Code Identifier Highlighting
New ASP.NET features
- Static IDs for ASP.NET Controls
- Web.config transformation
- URL Routing and SEO
- Compressing Session Values
- MetaKeyword and MetaDescription
- Generating Client IDs
- Permanent Redirect
- Dynamic Types
- Optional parameters
- Named and Optional Arguments
This are only few list of features, there are many more features available. Over couple of months I came across many good articles on Visual studio 2010 and .NET 4.0. Below are few of them. It may help many of guys who are just start working with VS 2010 or Thinking for start with
http://www.codedigest.com/Articles/ASPNET/284_New_Features_in_ASPNet_40-PART_1.aspx
http://www.codedigest.com/Articles/ASPNET/285_New_Features_in_ASPNet_40-PART_1.aspx
http://www.asp.net/LEARN/whitepapers/aspnet4/
http://www.dotnetfunda.com/articles/article815-whats-new-in-visual-studio-2010-.aspx
Filter GridView Records using AJAX Slider Control March 12, 2010
Posted by Abhijit Jana in .NET 4.0, ASP.NET, General.add a comment
Sometimes we need to filter the gridview data based on some range value. On that case we can use AJAX Slider control to provide scrollable Filter functionality with gridview control. Data source for the Gridview can be anything like XML or Database.
You can read the complete article and Implementation and download the sample application from DotNetFunda.Com
I will also write one article on AJAX MulipleSlider to filter the data based on minimumn and maximum value.
Please share your valuable feedback and suggestion.











