Equivalent of Javascript Alert(string) method in C# script.

  • Thread starter Thread starter Erik Veldkamp
  • Start date Start date
E

Erik Veldkamp

Hi there,

When I use javascript I can call the alert(string) method, to show an alert
window.

How can I do the same when I use C# script?

Thanks for your help
 
There is no equivalent for alert(), cause C# is server-side language,
alert() : client-side script
What you can do: write to client alert() script like:

RegisterClientScriptBlock("myAlert", "<script
language='javascript'>alert('Here alert');</script>")
HTH
 
Back
Top