0

I created a button on a small app I'm building and can't use MessageBox.Show b/c I am using Web not Windows. Does anyone know how I can get my message to display using C#?

1 Answers1

0

MessageBox is for Windows apps. Use JavaScript for message boxes in web apps. alert('hello world'); The C# code is processed on the back end by the web server, which doesn't show message boxes to the end user. JavaScript is processed by the browser which does show message boxes to the end user. You have to use JavaScript to show a message box to the user. Does that make sense?

edtheprogrammerguy
  • 5,957
  • 6
  • 28
  • 47