Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2007, 11:39 AM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default Error on Zapatec.Calendar.setup script

I have copied some old codes (VS 2002 or 2003) into my VS 2005 ASP.net file. The codes used a TextBox to display the current date
and a JavaScript to show the Zapatec calendar. It seemed to me,
the Javascript is not working well. Are the coded outdated or need
more codes for VS 2005?

TIA,
Jeffrey

<asp:TextBox ID="txtSingleDate" runat="server"></asp:TextBox>&nbsp;
        <input id="from_trigger_b" type="reset" value="..."/>
        <script type="text/javascript">
        Zapatec.Calendar.setup({
        inputField : "txtSingleDate",
        weekNumbers : false,
        ifFormat : "%m/%d/%Y",
        button : "from_trigger_b"
            }) </script>
__________________
C. Jeffrey Wang
 
Old December 14th, 2007, 12:00 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I am unfamiliar with Zapatec, you will probably need to contact the vendor directly.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 14th, 2007, 01:13 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks.

I know VS 2005 has a Calendar control in the Standard Toolbox.
But the calendar will be shown directly on the aspx page. How to code a button, so that when clicking the button, a small calendar
will pop up for selecting a date?

Jeffrey
 
Old December 14th, 2007, 01:54 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Place the calendar control on your form and set its visiblity to false.

For your button do something like this in the click event method:

calender1.Visible = true;
calender1.SelectedDate = DateTime.Now;

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 14th, 2007, 02:30 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you very much.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12 Error with binding Calendar? rsearing BOOK: Beginning ASP.NET 2.0 and Databases 2 October 9th, 2006 07:51 AM
setup error lovelyhelp BOOK: ASP.NET Website Programming Problem-Design-Solution 2 February 27th, 2006 08:53 AM
setup error caojun SQL Language 0 April 14th, 2005 02:01 AM
runtime error 800a0009 on calendar mg1966 Classic ASP Databases 0 February 2nd, 2005 09:23 PM
Setup Initialization Error RobinR MySQL 1 April 6th, 2004 02:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.