Nov 18, 2009, 11:24 PM
Set hidden value from JS codebhind not working?
I am trying to set a hidden value from code behind JS... Using it as I am trying to get the a value fron a control in an iFrame parent - when I run the below - everything fires but the hdnProCheck in the last lines value is not showing?
this.ScriptManager1.AddScript("alert(parent.rb1.checked);if (parent.rb1.checked){hdnProCheck.setValue('1')};alert(hdnProCheck.getValue());");
int result;
result = String.Compare(hdnProCheck.Value.ToString(), "1");
this.ScriptManager1.AddScript("alert('" + hdnProCheck.Value.ToString() + "');");