Subject: extrernally manipulating user controls
Posted By: kaliaparijat Post Date: 6/3/2008 1:25:05 AM
Hi, I have a dropdownlist with values ranging from 1-4. I have a user control with a dropdownlist with no values in it. Thing is , I want to know if there is a way that I can add listitems to the dropdownlist in my user control by selecting a value from the default.aspx dropdownlist.
So if I choose value 1 from the default.aspx dropdownlist, the dropdownlist in my user control will be populated by 1 as a listitem. If I choose 3, then the user control dropdownlist will contain list items, 1,2,3.

Sounds weird, but is there a way around this???


Reply By: geordieboy1975 Reply Date: 6/3/2008 8:48:48 AM
yeah you can do this by have a public function on the usercontrol that adds the selected value from the dropdown on the main page , which auto submits back when the index changes

Lee

Reply By: kaliaparijat Reply Date: 6/4/2008 12:13:42 AM
Hi Guys, I have a dropdownlist, and a selectedindexchanged event associated with it. Thing is this event is not firing man, I have switched the autopostback to true and false both, but it fails to fire either ways.

Any idea why its not happening???



Go to topic 71862

Return to index page 2
Return to index page 1