I have AJaxControlTool kit.dll in my project.
There is no problem with CalendarControl . It's just I do not want to drop it
on my page.
I use JavaScript code to attach CalendarBehavio ur to my input box.
Like this
$create(AjaxCon trolToolkit.Cal endarBehavior,
{ "button":$get(" imgCal1"),
"format":"M M/dd/yy",
"id":"CalendarE xtender1"
},
null,
null,
$get("txtDate1" )
);
I just need to make AjaxControlTool kit.CalendarBeh avior available by
including proper Javascript files.
PS: Problem was solved by adding following lines to ScriptManager.
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
<Scripts>
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Commo n.Common.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Exten derBase.BaseScr ipts.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Commo n.Threading.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Anima tion.Animations .js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Popup Extender.PopupB ehavior.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Anima tion.AnimationB ehavior.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Commo n.DateTime.js" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Compa t.Timer.Timer.j s" />
<asp:ScriptRefe rence Assembly="AjaxC ontrolToolkit"
Name="AjaxContr olToolkit.Calen dar.CalendarBeh avior.js" />
</Scripts>
</asp:ScriptManag er>
George
"David Wier" <dw@dw.comwro te in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Try adding the AjaxControlTool kit.dll to your toolbox
I normally create a new tab for it and just add it in
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
no bloated markup
"George" <no*****@comcas t.netwrote in message
news:OV******** ******@TK2MSFTN GP06.phx.gbl...
>How do I tell script manager to load necessary JavaScript files to
support CalendarBehavio r.
If I drop Calendar control on the page it's done automatically. But I do
not have CalendarControl on the page. My JavaScript code will attach it
in runtime but I need to be able to load JavaScript files that support
CalendarBehavi our...
Thanks
George.