如何改變位於UpdatePanel之外的控制項的值?
至少有兩個方法 一、把原本放在UpdatePanel1外的控制項,再包裹一個UpdatePanel2,然後在UpdatePanel1引發非同步之後,呼叫UpdatePanel2.Update來更新裡面的Control 二、在UpdatePanel1 引發非同步時候 動態註冊JS Sample: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim js As String js = "$get('TextBox1').value='...';" ScriptManager.RegisterStartupScript(Me, GetType(String), "", js, True) End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim js As String js = "alert('非同步postback過程當中產生的alert視窗...');" ScriptManager.RegisterStartupScript(Me, GetType(String), "", js, True) End Sub 參考:http://studyhost.blogspot.tw/2007/11/postbackupdatepanel_04.html