ednayap Posted June 18, 2003 Posted June 18, 2003 hie all! anyone can help me with this thing? i want it to work as in when users click the dropdownbox and the calender appears... tanx a lot Quote ##EYPS##
Neutrino Posted June 18, 2003 Posted June 18, 2003 On the "SelectedIndexChanged" event of the combo box make the Calendar visible. On page load give the following: caCalendar.Visible = false; then in the SelectedIndexChanged Event of the combo box give the following: private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e) { caCalendar.Visible = true; } the above code is in c#. make sure that all the controls are "runat=server" Amicalement, Neutrino Quote
Administrators PlausiblyDamp Posted June 18, 2003 Administrators Posted June 18, 2003 Do you mean the DateTimePicker control? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ednayap Posted June 18, 2003 Author Posted June 18, 2003 erm...im not too sure what is it called...but it displays a calendar and tanx neotrino....but do you have codes in vb? coz im developing using it! :D Quote ##EYPS##
capwrmt Posted June 18, 2003 Posted June 18, 2003 On page load give the following: caCalendar.Visible = false private sub DropDownList1_SelectedIndexChangedByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboWeights.SelectedIndexChanged caCalendar.Visible = true End sub Quote
Neutrino Posted June 18, 2003 Posted June 18, 2003 Hey buddy, gud u have got the codes in VB. but if you want to hide the control on "SelectionChanged" event of the calendar control, check whether the control also becomes hidden if u try to navigate between the months. If it is so , u have to make the calendar visible in the "VisibleMonthChanged" event of the calendar control. It wud work pretty fine with this. Amicalement, Neutrino Quote
ednayap Posted June 19, 2003 Author Posted June 19, 2003 err is there any component i must add in order to do this like in vb? Quote ##EYPS##
Neutrino Posted June 19, 2003 Posted June 19, 2003 No . I dont suppose. The Calendar control is very much available in the ToolBox --> Web Controls. Amicalement, Neutrino Quote
ednayap Posted June 19, 2003 Author Posted June 19, 2003 ermm....okay... but i still don't get the idea on how i can put a calendar into a dropdownlist... tanx for being patient =D Quote ##EYPS##
Neutrino Posted June 20, 2003 Posted June 20, 2003 hmm buddy i think u got confused with that one. What i meant was, add an item like "Select Calendar" in your DropDownList. Also have your Calendar hidden initially on your form/page. Then write the code so that when the user selects this choice "Select Calendar" in your DropDownList, display the Calendar. Hope u got things rt now. Amicalement, Neutrino Quote
ednayap Posted June 21, 2003 Author Posted June 21, 2003 ohhh.... i get it now... tanx a lot man!! you're really great! :D Quote ##EYPS##
Neutrino Posted June 21, 2003 Posted June 21, 2003 I am not gr8 pal. .Net is gr8 man. It is such a wonderful language. I started loving the lang very much, I will miss it a lot if I am asked to work on some other platform in my next project. Carry on the good work . :-) Amicalement, Neutrino Quote
Spass2003 Posted June 22, 2003 Posted June 22, 2003 i have written an datepicker with client-javascript - here is the source http://spass2003.hosteur.com/datepicker.html Quote
ednayap Posted June 22, 2003 Author Posted June 22, 2003 oohhhh tanx!! that;s cool! :D Quote ##EYPS##
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.