我想将消息框的文本从“您确定...?”更改为 到“您的信息已准备好提交”当我使用下面的代码执行此操作时,消息框不再起作用。此代码是否依赖于“您确定”部分?
Try
Dim msg As String = "Hello!"
Dim script As String = "if(confirm('You're information is ready to be submitted')) {window.location.href ='frmMain.aspx'; }"
ScriptManager.RegisterClientScriptBlock(Me, Me.[GetType](), "Test", script, True)
Catch ex As Exception
End Try