Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

##EYPS##
Posted

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

Posted

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

##EYPS##
Posted
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

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...