Solved

calendar

Posted on 2013-06-04
7
41 Views
Last Modified: 2016-08-14
Hi, I am new to the developing aspx page, I have created an aspx page and have everything needed now there is a calendar icon which i want to use as calendar control. Now how do i use the given calendar in the toolbox to link to the icon and use that icon as calendar control.
0
Comment
Question by:skbhagat35
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
7 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 39221279
not sure what you mean....

open a new page
drag a calendar control onto the page and underneath it put a label (blank out the text in the label)

double click on the calendar which will bring up the event box (code behind)

 
 Protected Sub Calendar1_SelectionChanged(sender As Object, e As System.EventArgs) Handles Calendar1.SelectionChanged
        Label1.Text = Calendar1.SelectedDate

Open in new window


Press Ctrl-F5 to run the webpage.. As you change the date the label text will reflect the date selected.

http://www.screencast.com/t/ZKveoGLdJKD
0
 

Author Comment

by:skbhagat35
ID: 39222230
thanks, but i did find solution to the calendar control in much better way.
0
 

Author Comment

by:skbhagat35
ID: 39224310
I've requested that this question be closed as follows:

Accepted answer: 0 points for skbhagat35's comment #a39222230

for the following reason:

I learned the solution by myself after much research
0
 

Accepted Solution

by:
skbhagat35 earned 0 total points
ID: 39225580
I was trying to link the calender contol to a image botton and so i was finding it difficult to do it and therefore put a question in this forum, but i resolved it by doing this

i took textbox and imagebutton from the tool box, then calender cotrol was dragged to link the image in design mode change the visible property of calendar to false, then put a function to imagebutton as

protected void FromDateImage_Click(object sender, ImageClickEventArgs e)
    {
        if (Calendar1.Visible)
        {
            Calendar1.Visible = false;
        }
        else
        {
            Calendar1.Visible = true;
        }
    }

and it started working also did some more stuffs with calendar like on to select date to the text box i used the following code
 
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
   {
        FromDate.Text = Calendar1.SelectedDate.ToShortDateString();
        Calendar1.Visible = false;
    }

changed some properties of calendar and so on,
Hence i resolved my problem
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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