|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
radiobuttonlist not updating textof a drop down selected. The text won't change though. I've even checked the value of the item I wanted to change and it's correct, but the display is still wrong. I'm inserting the code at runtime via the ClientScript.RegisterClientScriptBlock. Here's my javascript code: "function OnStateChanged()" + "{" + "var stateList = document.getElementById(\"ctl00_MainContentHolder_wzdCustomWizard_ctl04_ddState\");" + "var state = stateList.options[stateList.selectedIndex].text;" + "var rbToUpdate = document.getElementById(\"ctl00_MainContentHolder_wzdCustomWizard_ctl04_rblAcctType_3\");" + "var newString = \"the state of \" + state + \" is selected\";" + "rbToUpdate.value = newString;" + "}"; When I stick an alert in there after the update to check the value of rbToUpdate, iit's correct, but it's still the old one on the page with the blank in it.
controls & Session
Asp.net charting control Localization of the ASP.NET login control Drop Down Box Validation Problem usercontrols and postback Calendar control - disabling past dates. What happen to powerupasp.net? Inserting using Formview Regarding creating a new solution passing query string as variable from aspx.cs to aspx |
|||||||||||||||||||||||