Lots of people are in confusion whether the master pages are loaded first or content page(child page is loaded first.I want to make it more clear.Following is page execution structure of the master page and child pages.First the controls of the master page will instantiated and then control of the child page is instantiated.Then the first the page_load event of the child page is executed and then...
Tuesday, October 16, 2007
Monday, October 15, 2007
What is the diffrence between abstract(must inherit) class and inteface
Following are the main difference between abstract class and interface.1. Abstract class can contain abstract method while interface does not.2. Abstract class can contain method body while interface does not.3. Methods in abstract class can contain any valid access specifier while in interface public access specifier is only allowed.4. Abstract class can contain methods with body while interface...
Overriding static member in child class with C#.NET,VB.NET
Static member are accessible without creating the objects of the class so you don't need to create a object for that class.Micorosft CLR does not permit the static methods to be override in child class. But off course you can hide the static method of parent method with new keyword in child class. Here is the example of that.public class A{ public static virtual void Test() { }}public class...
What is diffrence between string and String in C#.net
There is no diffrence between string and String. string is a alias created by microsoft for System.string.There are some other datatypes for which microsoft has created the alias.These are the aliases defined:string->System.Stringsbyte->System.SBytebyte->System.Byteshort->System.Int16ushort->System.UInt16int->System.Int32uint->System.UInt32long->System.Int64ulong->Syste...
Tuesday, October 9, 2007
How to insert a item in databound dropdownlist at nth position
Hello guys,Sorry for not posting anything for long time. Actually i was busy about changing my job. We have use the dropdownlist with millians of time some developer still does not know that how to insert the listitem at particular level.Suppose your dropdownlist is having 5 items and it isbound with some datasource and you want to insert "--Select---" on the top of the order. You can do it easily...