----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Pandurang_Nayak Message 4 in Discussion hi, sorry for the delayed response. i was on leave and my B.NET mailing has stopped. Need to get in touch with the managers and get it sorted out (somebody listening pls help - I think some mails bounced during that period coz of which now my address is probably marked invalid). Like Roshan mentioned, whenever you have selected a control, that get's posted back. You have to take the postback value and use it. However, I assume your problem is not that simple, otherwise you wouldn't be posting it. I guess you are doing some other action for a postback and your page is reloading with the original dropdown (happens sometimes with Viewstate). Some quick suggestions (I won't be really able to help unless I know what the code is. Probably posting that would help. These are just some pointers to set you thinking on the solution): 1. EnableViewState = false for the control and setting the values programatically in the server-side code. 2. Doing the changing of value in second dropdown through a server-side post - this should solve all problems, though it is a very dumb way of doing it. 3. Using a hidden variable to set the value of the field through javascript. Setting back the hidden field during the page reload (making use of the big time saviour IsPostBack flag). Using an onload JavaScript to set back the second dropdown to the original value based on the hidden field value. I know the above doesn't help directly. But hope it gives you some ideas. Post the code and I'll surely be able to help you on this. Regards Pandurang ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
