Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-02-23 : 08:17:37
|
jojo n. writes "hello,i was searching this forum to find an answer to my question but no luck.i just want to ask, if anyone of you have done a pop-up message to a report when certain criteria doesn't met and abort the report?basically, i'm using a mssql-reporting services and designing the report in vs. what i would like is when this report is deployed in web-based, i need to have a pop-up message if the certain criteria failed then abort the report.plesae if anyone have done this before, can help me how?thanks and hope to hear from anyone on this forum.regards - jojo" |
|
tikus
Starting Member
31 Posts |
Posted - 2005-03-03 : 20:47:52
|
Hope this help: If (Your condition) then Dim sbScript As New StringBuilder sbScript.Append("<SCRIPT LANGUAGE='Javascript'>") sbScript.Append("alert('Please enter a correct parameter.');") sbScript.Append("</SCRIPT>") litJavascript.Text = sbScript.ToString() --popup Exit Sub -- don't run the report End If |
 |
|
|
|
|