Rank: Member Groups: Member
Joined: 6/3/2008 Posts: 26
|
I have tried to create a datepicker dynamically from my server side code. But i couldnt make it to work fully. I couldnt get the title template work correctly. With my aspx datepicker control am adding a table as title template and thereby am able to use the year changing facility of datepicker. With dynamic creation am not able to create title template and hence am not able to display the options for changing the date year wise. Hope u assist me and also if you could provide me a link describing the creating the datepicker dynamically(or paste such a code below). Please respond ASAP.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The easiest way for you to do it is to put it inside a user control and then load the user control dynamically. The only thing you want to be careful is if you have JavaScript functions in your user control, you will want to prefix the name of those functions so that each instance of the user control gets a different function name. Otherwise they will overwrite each other. Unfortunately we will not be able to provide you sample code because we consider dynamic loading a generic ASP.NET programming issue.
Thanks!
|