View Single Post
 
Old 06-21-2013, 11:00 AM
Roger-U Roger-U is offline
Centurion
 
Join Date: Apr 2008
Location: Surrey, UK
Posts: 112
Default AjaxControlToolkit.CalendarExtender

Dim cal1 As New AjaxControlToolkit.CalendarExtender
cal1.TargetControlID = "txt3"
Me.Controls.Add(cal1)

but i want (need) to add the <inputs etc as dynamic html such as

litHtml.text = "<input id=""txt3"" />"

This compiles and looks good... but at run time it errors with the calendar control script complaining that element 'txt3' does not exist.

It does, in that document.getelementById("txt3") works, but i guess the CalendarExtender is looking elsewhere for it.

Does anyone know if it is possible to associate the Calendar Extender with a dynamically generated input box?
Reply With Quote