Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes. March 2006 Entries
Atlas Control With GridView And DropDownList
I just saw the video tutorial of using the Atlas project with ASP.NET from Scott Guthrie. It is an awesome introduction to the Atlas Project. You can download the tutorial from the following link: http://weblogs.asp.net/scot... The tutorial explains how you can make a simple Task list application using ASP.NET 2.0 and add Atlas features to it. One of the cool things that Atlas introduces is the Update Panel control. You can simply place a server control inside the Update ......

Posted On Friday, March 31, 2006 11:41 PM

Download Export Button Control For FREE With Complete Source Code
Sometime back I developed a simple Export Button Control which can be used Export Datagrid to different formats. Now, you can download the control for free using the following link. Download Export Button Control. I hope you like it! powered by IMHO 1.3 ......

Posted On Friday, March 31, 2006 7:30 PM

Do your grocery while your .NET 2.0 application compiles
Yes, now while your .NET 2.0 application is compiling you can go to Wallmart and do some grocery. This is because the application takes darn too much time to compile. I have a solution that consists of three projects and it extremely long time to compile. Is there anyone else who is also going to the grocery store while the application compiles? powered by IMHO 1.3 ......

Posted On Thursday, March 30, 2006 9:37 PM

Webhost4life Server is down again!!!!!!
Webhost4life server is down again and for that reason GridViewGuy and GridViewGuy forums are not running. Please be patient as the technical support team of Webhost4life resolve this issue. Thank you, GridViewGuy powered by IMHO 1.3 ......

Posted On Monday, March 27, 2006 9:16 AM

DropDownList Inside GridView (One to Many Relationship)
Sometimes we are in a situation that we need a DropDownList inside the GridView control showing information about particular category. This means that DropDownList on row one of the GridView will contain different data than the one in row two. This is also refered as One to Many Relationship. Because a single category can have multiple products. I wrote an article about this scenario which can be viewed at the following link: DropDownList Inside GridView (One to Many Relationship) powered by IMHO ......

Posted On Sunday, March 26, 2006 7:59 PM

Enumerators to iterate through the collections
The .NET Framework introduces Enumerators which can be used to iterate through the collections. Suppose that you have a Group which has SubGroups and each SubGroup has some items. You can iterate the Parent(Group), Child(SubGroup) using Enumerations. Check out the code below: Group.cs: using System;using System.Collections.Generic;... System.Text;using System.Collections;namespace Something{ public class Group : IEnumerable { private string _name; private List<SubGroup> _subGroupList = new ......

Posted On Saturday, March 18, 2006 10:58 PM

RadioButtonList in GridView Control
I am working on a project that required that each GridView row has one RadioButtonList. User can make a choice/selection from the list and when the button is clicked I will extract all the choices. The problem was that when the button was clicked, RadioButtonList forgots all the choices and returns the default values which was index 0 for all the rows. After spending some considerable amount of time on this problem I made the whole thing using dynamically creating the HTML and adding the RadioButtons ......

Posted On Thursday, March 16, 2006 11:35 PM

Maintaining state between virtual directories
Some times you have different projects under one application. And those projects have their own virtual directories. You may be running one website and want to pass the user's information to other website which is run in a different virtual directories. If you use Session then you will find out that Sessions got lost when they reached the destination application. In ASP.NET 2.0 you can make use of the Profile object and pass the values from one application to another. The reason is simple that it ......

Posted On Friday, March 10, 2006 6:45 PM

DeSeleting All CheckBoxes When DeSelect One Item CheckBox
Ahhhh its 2:00 AM and me little sleepy! Anyway someone asked me on the forums.gridviewguy.com that how can I deselect all the checkboxes in the gridview control when a single checkbox is unchecked. Offcourse this is very easy if you are using and want this functionality to happen when header checkbox is checked and unchecked. But the request was that when any checkbox in the GridView is unchecked it should disable all the checkboxes. Here is the code which does the same: <asp:GridView ID="GridView1" ......

Posted On Tuesday, March 7, 2006 12:05 AM

Making Factories!
I decided to look into the design patterns so I can write good code. These days I am learning the Factory Pattern. The first important rule is "Program to an interface and not the implementation". What does it mean? We all write code like this: Student student = new Student(); This is an example of programming to the implementation. This is because Student is a concreate class and when we type new then we are actually making an object of the concreate class. This way we are exposing the concreate ......

Posted On Sunday, March 5, 2006 11:32 AM

Subsitution Control in ASP.NET 2.0
I am sure that you all are familiar with Caching the page. If however you are interested that some portions of the page is not cached then you can make use of the Subsitution control which comes with ASP.NET 2.0. Simply, drag and drop the Subsitution control from the toolbox to the design view. Here is the HTML of the Subsitution control: <asp:Substitution ID="SubControl" runat="server" MethodName="GetDate" /> The GetDate method is a static method (The method that you provide in the MethodName ......

Posted On Saturday, March 4, 2006 3:30 PM

Why can't I place UserControls inside the App_Code Folder
I was trying to place a UserControl inside the App_Code folder. The main reason for putting the UserControl inside App_Code folder was to make it as a BaseUserControl so that other UserControls are able to inherit from it. Whenever I tried to add a UserControl in the folder it throws the exception saying that UserControls are not permitted in the App_Code folder. This is little strange since I have a webform which is also inside the App_Code folder. The webform (Page) serves as the BasePage for other ......

Posted On Thursday, March 2, 2006 3:43 PM

Displaying Menu Control Horizontal With SubMenus
Menu controls in ASP.NET 2.0 are pretty cool. I wanted to display the menu horizontally with Sub Menus on some of the menu item and I was able to do this in few minutes. Check out the screen shot below to see what I am talking about: The code is also pretty straight forward. First thing you need is a Web.sitemap file which will contain the text and the url of the links that you will display on the menu control. Web.sitemap: <?xml version="1.0" encoding="UTF-8"?><si... <siteMapNode ......

Posted On Thursday, March 2, 2006 3:39 PM

Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net