khushi
May 17th, 2005, 01:59 AM
Hi,
I m developing a web application using C#. i have made an user control for calendar in which there are three drop down list one for year, second for month and third for date. Its working fine but when i m using this control in other webform its not displaying the selected valued of my control.
I have tried a lot but i m not able to do it. Like for the month i hve written the following cod in my .ascx page
public string Month
{
get{return drpMonth.SelectedItem.Value.ToString();}
set{drpMonth.SelectedItem.Value = value;}
}
but it is showing error.
Can anyone help me out in this????
I m developing a web application using C#. i have made an user control for calendar in which there are three drop down list one for year, second for month and third for date. Its working fine but when i m using this control in other webform its not displaying the selected valued of my control.
I have tried a lot but i m not able to do it. Like for the month i hve written the following cod in my .ascx page
public string Month
{
get{return drpMonth.SelectedItem.Value.ToString();}
set{drpMonth.SelectedItem.Value = value;}
}
but it is showing error.
Can anyone help me out in this????