473,588 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX calendar control

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
CalendarBehavio ur...

Thanks
George.
Jul 2 '08 #1
4 2518
Finally found an answer

<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>
Here is list of scripts needs to be added for each control
http://mattberseth2.com/demo/Default...ser&Filter=All

George.

"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
CalendarBehavio ur...

Thanks
George.

Jul 2 '08 #2
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
CalendarBehavio ur...

Thanks
George.


Jul 2 '08 #3
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.


Jul 2 '08 #4
"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
I get an error saying assembly cannot be found when I try this in Visual
Studio 2005. Odd, it worked fine at work.

Marc
Jul 6 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1098
by: Manny Chohan | last post by:
Hi Guys, I am planning to put a Calendar control on my website. However i dont want the whole page to reload when i am paging the calendar. i did little research on web and found AJAX as a good source. There aare some good tutorials out there however i didnt find anything to use AJAX to bind Calendar to either XML or dataset. Can someone please explain how this can be done? Thanks
2
2185
by: jobs | last post by:
I've got a masterpage with a custom control that has a calendar. when dates on the calendar are selected, it sets a session variable. that calender is on every page via the master page. In the home page, that session variable is used as a param for a grdiview where eventlog records for the day are displayed. The gridview is on the homepage under a content tag. In data input web form pages, we use that calendar as a datepicker for date...
3
2629
by: =?Utf-8?B?UGFycm90?= | last post by:
I applied the following Ajax code in my web page which has a calendar control to keep my page from completely reloading everytime something was changed. <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/> <atlas:UpdatePanel runat="server" ID="UpdatePanel1" Mode="Conditional"> <ContentTemplate> After inserting this code, my calendar stopped working in that if I clicked on a date, nothing would...
0
1193
by: Garg | last post by:
Hi, I am using an AJAX calendar extender and binding it to a atextbox in my application. I want my calendar to enable only a few dates fro user to select. Say, dates from JAn 2006 to Jan 2007. I don't want my calendar to display all the dates. How do I put this validation on my calendar control??
4
15265
by: BillE | last post by:
Can I make the Ajax calendar extender appear on top of dropdown lists instead of behind them? Thanks Bill
0
1571
by: Tamer Ibrahim | last post by:
Hi, I got the following exception when I use ajax calendar control on some aspx pages, here it is : Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set
2
14454
by: =?Utf-8?B?Q2VzYXI=?= | last post by:
I have the ASP.NET 2.0 AJAX Extensions 1.0 installed (v1.0.61025). As to the web.config file, I'm using the one created using the ASP.NET AJAX-Enabled website ... This error is due to that I'm trying to use the AJAX control toolkit, but when I try and add the controls to the toolbar of VS2005 from the dll, I get this error: C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0...
2
1828
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using a calendar extender with a masked edit validator and masked editextender that provides a dropdown calendar and a text box for date entry. On the same page I am using a sliderExtender control. Both controls work but the problem is that the slider is placed below the calendar extender so when the user clicks on the calendar image and the calendar appears, the slider control appears mixed in with the calendar control where it...
4
1493
by: ton | last post by:
Hi, I wander what to do. I'm developing a webapplication. One of the parts is to show records from a database. To modifiy a value, text of relational link or date I would like to use Ajax where possible. I saw the posiibilty of the Ajax control toolkit with the calendar extender. How nice. But is it fast? Thats the question, because the roundtrip to the server would build the full page in postback and only the changes will be posted...
1
6053
by: bellgodz | last post by:
Hello, I have a text box on an .aspx page that an AJAX calendar extender is tied to. When this page is loaded the text box in question is populated with a date from a selected record. I've tried using the "SelectedValue" property of the calendar extender to populate this text box, but what happens is this text box retains the focus after the page is loaded, which causes the calendar from the calendar extender to appear. I do not want this...
0
7857
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8220
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5396
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2367
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.