Solved

Calendar selector

Posted on 2011-09-28
12
362 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 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

11 Experts available now in Live!

Get 1:1 Help Now