Thursday, August 16, 2012

State Management techniques in asp.net

Web form pages are HTTP-Based, they are stateless, which means they don’t know whether the requests are all from the same client, and pages are destroyed and recreated with each round trip to the server, therefore information will be lost, therefore state management is really an issue in developing web applications

We could easily solve these problems in ASP with cookie, query string, application, session and so on. Now in ASP.NET, we still can use these functions, but they are richer and more powerful, so let’s dive into it.

Mainly there are two different ways to manage web page’s state: Client-side and Server-side.

Performance guidelines for a asp.net Web application

When you design and develop your web applications, you always must take into consideration the performance factor. By doing this, you will remove the cost of rewriting modules, modifying code, or redistributing applications. A good practice that must be kept in mind for writing quality code is to make frequent code reviews. For example, I often find a better implementation of a certain module after a code review. Also, you should test different ways of implementing your code to determine the performance impact over your application. Here are some rules that should be followed for writing high performing applications.

Tuesday, September 13, 2011

Display hierarchial data using TreeView :: Parent-Child Relationship

Treeview is a control available in ASP.NET to show hierarchial data. Using features of treeview and power of dataset, we can design a tree wrt datatable with parent-child relationship. This post explains the implementation of hierarchial data into treeview.
This figure illustrate the outcome and datatable strucuture to which tree should be mapped.

Autocomplete TextBox with selection :: Facebook Clone

Monday, June 6, 2011

Asp.net : Manage web application help in directory structure

In this topic, I will explain how application help can be managed as file system structure. Web application file system is easy to manage and systematic.
In this solution, Application help files can be managed under their respective category and subcategories which will be folders of the file system. This solution will read all directories as category and file as help topic description.