| Author: Ranga Senal Fernando 01 Sep 2004 | Member Level: Bronze Points : 0 |
Well hope this is bit late to response to this message ..
---Problem--- anyways i prefer its good to add my hand on experience on this issue , i assume that Siva trying to retrieve seleted value of a dropdown box which is populated by a javascript code. I had the same situation [what Siva has mention above ]with one of my program. What it was is to retrive selected value from a dropdownlist which is populated by Javascript.
--Solution--- its no need to assing selected value to a extra text box. what you only have to do is regues the value by the control name .Keep in mind in this situation u can not put the name of the control that u have put in design mode .. acctually u have to put the control name which has genarated my the ASP.NET for example your control name can be "drpCustomers" in Desing time but when rendering HTML to the browser the control name would be something like "from1drpCustomers" u can see it by opening your page in viewsource mode. so put that name in ' page.request.form("from1drpCustomers") then u can retrieve the selected value of the drpdownbox... if anybody not clear wht i'm saying just mail me back or add a comment. then i will find some free time to make a sample and send it to you :) bye Agnar
|