Problem with web user controls

Hi all
i am using visual studio 2008 to make a asp.net website in which i am using a web user control to manupulate 3 comboboxes denoting day, month and year in dropdown.

My C# code is such that i’ve to autopostback the month and year comboboxes as to give an effect of no of days in that particular month and year.

Now when i try to assign value which is fetched from the database it remains static i mean to say that i can change the day dropdown which is not set to autopostback=true but whenever i change any value from the month and year dropdowns an autopostback occurs and the fields get reset to whatever that was fetched from the database.

I need the web user control to be like fetch once but then allow the user to update the date.

Why is the data remain static? :frowning: please help.

Also i’d like to know more how to put and fetch data from a web user control

Yes NightStalker-DNS you are right i was just doing that a page postback check solved the problem :slight_smile: Also i got the idea how to put and get from web user controls.

Thanks a lot for the help.

If you can show some code of how you’re trying to achieve this, it will help

Yes, some code will definitly help. However, it sounds like your binding to the drop downs on page load and not in a !Page.IsPostBack check