Making text of asp:abel dependent on value of asp:calendar control

H

Hans Merkl

Hi,
I have a web form with a calendar control and a label. The label is
supposed to always show the selected date of the calendar control. Now I am
wondering where the best place is to put the code that assigns the value of
the label.

So far I am assigning the value of the label in the Page_load method of the
form and also in the SelectionChanged event of the calendar control.

Is there a way to get around having to do this in 2 different locations?
Should I use another event?

Thanks

Hans
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top