尝试通过从后面的asp.net代码运行javascript来更新隐藏的字段值。下面的代码位于asyncfileuploader uploadcomplete中。
If (Not ClientScript.IsStartupScriptRegistered("lowResTrue")) Then
Page.ClientScript.RegisterStartupScript _
(Me.GetType(), "lowResTrue", "lowResTrue();", True)
End If
的Javascript
function lowResTrue() {
document.getElementById('lowResHidden').value = 1;
alert('currval true: ' + document.getElementById('lowResHidden').value);
}
上面的警告显示应该是“1”。但是,当我运行另一个javascript时,它没有将值更改为“1”。它接口像javascript的ASP.net触发器没有更新页面。有什么想法吗?