Solved

Calendar selector

Posted on 2011-09-28
12
366 Views
Last Modified: 2012-06-21
Hello,
I need to add a canlendar selector on my asp page. Please provide sample code.
Thanks.
0
Comment
Question by:mrong
  • 5
  • 4
  • 2
12 Comments
 

Expert Comment

by:Ashrafedes
ID: 36716840
Alex control
 Alex control canlendar This should be added in your webpage at any place
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>


and for each textbox you need to add calender

<                                    <asp:TextBox ID="TextBox31" runat="server"
                                       
                                        Text='<%# Bind("[DATE of PERMIT COMPLETED from SUB-MUNICIPAL]", "{0:d}") %>'
                                        Height="95%" Width="126px"></asp:TextBox>
                                    <asp:CalendarExtender ID="TextBox31_CalendarExtender" runat="server"
                                        Enabled="True" TargetControlID="TextBox31">
                                    </asp:CalendarExtender>
0
 

Author Comment

by:mrong
ID: 36716943
Ashrafedes:
The code you provided, is it for asp or aspx?
thanks.
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 36716965
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Expert Comment

by:Ashrafedes
ID: 36716969
Aspx
0
 

Author Comment

by:mrong
ID: 36717029
I need asp sample. thanks.
0
 

Author Comment

by:mrong
ID: 36717043
slightwv:
I took a look at the sample you provided. It displays the current date. How to make it populated to the text field? thanks.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36717430
My straight ASP/VBScript s very old but in scanning that code can you create some JavaScript to retrieve the contents of the selected cell?

Now that I mentioned Javascript, can you use JQuery UI?  It has a popup calendar all Javascript Based:

http://jqueryui.com/demos/datepicker/
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36717511
Mind if I ask why you accepted http:#a36716840 when it didn't meet your requirements?
0
 

Author Comment

by:mrong
ID: 36717622
slightwv:
I usually split the points for all the people who responded my questions. Is there anyway to re-grant the points? thanks.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36717691
>>I usually split the points for all the people who responded my questions.

You should really not do this.  The power of this site is the Knowledge Base of answered questions.  When you are searching for an answer to your question and open it up, you look for the 'Accepted' and 'Assisted' posts.  If everyone that participates gets points just for posting, it waters down the Knowledge base.

The participating Experts realize that not every post will get points.

Please take a little time and review:
http://www.experts-exchange.com/help.jsp#hs=29&hi=407


I don't want you feel that I am pressuring you to adjust your points but the question can be reopened if this is truly what you want.

Please review:
http://www.experts-exchange.com/help.jsp#hs=29&hi=409
0
 

Author Comment

by:mrong
ID: 36717737
I sent a request to re-open the question. thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question