Creating Custom Control

J

Julien

Hi !

I'm creating a custom control, in which I would render an image with
client-side script code to display/hide a calendar control which also
belong to my custom control. In this control I've created properties to
map onto my calendar UI properties like TodayDayStyle, DayStyle,
NextMonthStyle, but I think I should add attributes to these properties
to make my control more useable when I will insert it in my pages.

For example, I've created a DayStyle property which, when set, is
mapped on my calendar's DayStyle property (I've kept the same names, so
with my awful English, excuse-me if my problem doesn't seem so clear ;)
). I would like to use it like when using a calendar :
<asp:Calendar runat=server....>
<DayStyle ...>
</asp:Calendar>

and so when modifying my custom control's properties in design mode, I
could have :
<cc1:MyCustomCtl runat="server" ...>
<DayStyle ...>
</cc1:MyCustomCtl>

So if someone knows a lot about creation of advanced custom controls
can he help me ? Or indicate me a good tutorial on the web ...

Many thanks by advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,084
Latest member
HansGeorgi

Latest Threads

Top