Solved

Calendar selector

Posted on 2011-09-28
12
363 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
 

Expert Comment

by:Ashrafedes
ID: 36716969
Aspx
0
 

Author Comment

by:mrong
ID: 36717029
I need asp sample. thanks.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

943 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now