|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Message box not displayed when using AJAX Update Panel
Hi,
I'm new in AJAX. In my webpage I put a drop down list into Update panel and set it autopostback = true. If user select anything in the list, system will pop up message box as a respond to the selected value. Coding for message box is as below: Code:
Dim strMessage As String
Dim strScript As String
strMessage = "Thank you for selecting...."
strScript = "<script language = Javascript>"
strScript += "alert(""" & strMessage & """);"
strScript += "</script>"
If (Not ClientScript.IsStartupScriptRegistered("clientScript")) Then
ClientScript.RegisterStartupScript(Me.GetType(), "clientScript", strScript)
End If
ddJenis.SelectedValue = "Please choose.."
Exit Sub
My problem is, when user select any item, system will only set ddJenis to "Please choose.." and no message box displayed. But when I removed update panel, everything works fine. Thanks for any helps. |
|
#2
|
|||
|
|||
|
Same problem
Hi,
I'm experiencing the same problem with a popup MessageBox in AJAX. I was woundering if you have found a solution to this issue. Thank's I'm new in AJAX. In my webpage I put a drop down list into Update panel and set it autopostback = true. If user select anything in the list, system will pop up message box as a respond to the selected value. Coding for message box is as below: Code:
Dim strMessage As String
Dim strScript As String
strMessage = "Thank you for selecting...."
strScript = "<script language = Javascript>"
strScript += "alert(""" & strMessage & """);"
strScript += "</script>"
If (Not ClientScript.IsStartupScriptRegistered("clientScript")) Then
ClientScript.RegisterStartupScript(Me.GetType(), "clientScript", strScript)
End If
ddJenis.SelectedValue = "Please choose.."
Exit Sub
My problem is, when user select any item, system will only set ddJenis to "Please choose.." and no message box displayed. But when I removed update panel, everything works fine. Thanks for any helps.[/QUOTE] |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Message box not displayed when using AJAX Update Panel |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|