Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes. September 2006 Entries
GridView Property EnableSortingAndPagingCallbacks
GridView control offers a cool property "EnableSortingAndPagingCall... which enables the user to perform paging and sorting without any postbacks. Although the feature is pretty neat but it has some BIG limitations. First of all you can only use the DataSourceID property of the GridView to assign the data source. This rules out DataSets, DataTables and Custom Collections (My Favourite). So, only thing left for you to use is SqlDataSource and ObjectDataSource controls. When using SqlDataSource ......

Posted On Wednesday, September 20, 2006 1:39 PM

ATLAS Control Toolkit Updated!

Wow, some very nice controls have been added in the ATLAS Control Toolkit. One new control which is extremely cool is the Animation control. The animation control allows you to create cool animations and effects in very less time.

Check out and download the new build:

Posted On Monday, September 18, 2006 12:13 PM

Passing Multiple Fields With GridView HyperLink Column
You can easily pass multiple fields in the querystring when using the GridView HyperLinkField column. Take a look at the code below: <asp:GridView ID="gvCategories" runat="server" > <Columns> <asp:HyperLinkField DataTextField="CategoryName" DataNavigateUrlFields="Cate... DataNavigateUrlFormatString... /> </Columns> </asp:GridView> Easy is'nt it ......

Posted On Monday, September 18, 2006 11:40 AM

Creating Crystal Reports Using Typed DataSet (Article)

I have just published a new article "Creating Crystal Reports Using Typed DataSet". You can view the article on GridViewGuy.


Posted On Sunday, September 17, 2006 8:28 PM

ATLAS Drag Panel Control (Easy Fix for Position Reset)

If you are using the ATLAS Drag Panel Control then you might have noticed that when you drop the panel on the screen it goes back to its original position. There is a very easy fix to this problem.

<body style="width:100%; height:100%" />

Yup! all you need to do is to make the body width and height 100% and that is it. Now, when you drop your panel is will not reset to its original position.

Posted On Sunday, September 17, 2006 11:36 AM

Multiple DropDownLists Inside the GridView Item Template Field
Sometimes you have two DropDownLists inside the GridView Item Tempalte Field. This scenario is encountered when the DropDownList have a parent-child relationship. So, you want to select some item from the parent and fill the child list based on the parent selection. If GridView control was not involved in this triangle then it would have been pretty simple but GridView makes it little different. The first thing that you need to do is to put the AutoPostBack on the parent DropDownList to true. Now, ......

Posted On Friday, September 15, 2006 2:02 PM

Maximum Reports have been generated error!
When creating lots of crystal reports you might get the error that "Maximum Reports have been generated and please contact the administrator". This is because of the registry settings for the Crystal Reports. I think the default maximum number of reports is between 70-80. Although you can change this by editing the registry but better technique is to close the and dispose the report when you are done with it. You can close the report in the Page_Unload event of the page life cycle. protected override ......

Posted On Friday, September 15, 2006 1:54 PM

Finally Found the Song After 3 Years :) (NON TECH)
Wow, it is been a long long time for I was searching for this song. The song is in urdu by the great Faiz Ahmed Faiz. It is the sound track of the greatest drama "Dhoop Kinaray". You can listen to the song using the link below: And here are the lyrics of the song: Last night your faded memory came to meAs in the wilderness spring comes quietly,As, slowly, in the desert, moves the breeze,As, to a sick man, without cause, comes peace. ......

Posted On Thursday, September 14, 2006 9:53 PM

Populating Crystal Reports With Custom Strongly Typed DataSet
One cool thing about Crystal Reports is that you can easily configure it to use your custom made strongly typed dataset. All you need to do is to create your dataset and use the Crystal Report "Database Expert" option to assign the source as ADO.NET DataSets. And finally you will need to populate the dataset in your C# code. protected void Btn_DisplayReport(object sender, EventArgs e) { UserDataSet user = new UserDataSet(); SqlConnection myConnection = new SqlConnection(Configuration... ......

Posted On Thursday, September 14, 2006 12:56 PM

Passing Parameters from ASP.NET Application to Crystal Report Application
Crystal Reports allow you to display the data in a formatted report style form. You can easily create Crystal Reports by adding the "New Item" from the Visual Studio and going through the wizard. The problem comes when you need to make a report that is dependent on the parameters being passed from the ASP.NET application. In this blog entry I will quickly go over the method in which you can pass the parameters from ASP.NET application to Crystal Reports and display them in a webform. I will soon ......

Posted On Wednesday, September 13, 2006 9:17 PM

Generic List to Fill<T> List
We all use DataReader to fill or populate our custom collection. Usually the code is pretty repetetive since we are filling different collections with different objects. In my opinion there should be one Fill<T> method which should fill all the collections provided with the correct parameters. First take a look at the common way of filling a collection: private static void FillCategoryListWithoutHelp... { List<Category> categoryList = new List<Category>(); string connectionString ......

Posted On Wednesday, September 13, 2006 8:19 PM

Health Monitoring With ASP.NET 2.0
ASP.NET 2.0 introduced a new feature which is called Health Monitoring. Health Monitoring allows you to have the information about your website. This information can contain everything including startup and stopping of the application, errors, events etc. You can easily enable the Health Monitoring services by doing small settings in web.config file. Simply run the aspnet_regsql.exe from the Visual Studio.NET 2005 command prompt. This will guide to enable the different services on your database. ......

Posted On Sunday, September 10, 2006 9:06 PM

GridView Export to Excel Button Custom Control
Since, most of the applications these days require a feature to export the GridView to excel so I decided to make it into a custom control. The control was actually a simple user control which was converted to the custom control using the Visual Studio.NET 2005 Publish and ASP.NET build features. The control is in the form of the dll so you can simply download it and reference the assembly in your application. Once, you have the reference to the assembly you can simply use the control as following: ......

Posted On Saturday, September 9, 2006 8:31 PM

DropDownList Dependency Using Client Callbacks
In most of the applications we need DropDownList dependency. This means that when one dropdownlist is selected then the child dropdownlist is populated with the data which was dependent on the first dropdownlist. ASP.NET 2.0 Callbacks makes it very easy to implement such feature. Here is the complete code for the dropdownlist dependency using ASP.NET client callbacks. using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; ......

Posted On Sunday, September 3, 2006 7:24 PM

Client Callbacks in ASP.NET 2.0

A new article is published on the GridViewGuy which shows that how you can use the ASP.NET 2.0 Client Callbacks to display the data from the database based on the categoryID. You can read the article at the following link:


Posted On Sunday, September 3, 2006 4:38 PM

Creating Page Sensitive Help
Help pages allows the users to have a more clear idea about the purpose of the page. There are various ways of providing the help to the user. Some include the help on a single page and you will have to find the help of the page or the section that you are looking for. It would be nice to have help about the page that you are currently on and with ASP.NET it is plain simple. In the example below I used the menu control as the navigation control. So, I created the menu control on the master page. ......

Posted On Saturday, September 2, 2006 8:02 AM

Copyright © Mohammad Azam | Powered by: