Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calendar selector

Posted on 2011-09-28
12
Medium Priority
?
372 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 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 36716965
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 78

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 78

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 78

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

916 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