View Single Post
  #1 (permalink)  
Old December 9th, 2004, 10:27 AM
ochanarachel ochanarachel is offline
Registered User
 
Join Date: Oct 2004
Location: evenyehuda, , Israel.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default User Control Inheritence.

Hellow.

General:
I'm developing asp.net application.
I need to write several properties that are common to
all control types : datagrid,checkbox,button...ecxt.

problem:
[u]option A:</u>
should i inherit a control from System.Web.UI.UserControl
and then inherit again for each type.
for example:
1. MyBaseControl:System.Web.UI.UserControl.
2. MyDataGrid:MyBaseControl.
3. Place a DataGrid on it.
and repeat step 2,3 for each control type ?

[u]Option B</u>
Inherit diractly : MyDataGrid from DataGrid,MyCheckBox from CheckBox....

Please help..
Thanks inadvance.
Racheli.

Reply With Quote