Urgent:::::::::::::;:::User Controls and their methods

  • Thread starter Thread starter Vannela
  • Start date Start date
V

Vannela

I want to create some 100 user controls and write the
common methods for all these user controls ,is this
possible?

Also i want to refer this user control and their methods
on the aspx.cs file is it possible (after placing this
user control on the web form )?

Please give me few code snippets of user controls which
satisfy my problem
OR

Give me some sites where i can explore more or some books
which i can refer.


Thank you
 
You can inherit all your control from BaseControl class
and implement all comon methods in this base control

1.Create new empty WebUserControl
2.Name it as BaseControl (or anylike you want)
3.Remove inheritance of all your controls from System.Web.UI.UserControl
4.Add inheritance from BaseControl
5.Enjoy
 
Back
Top