Solved

calendar

Posted on 2013-06-04
7
38 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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