0

Hi

I have been trying to wrap my head around a small issue I have. I'm trying to show a messagebox if a value a met.

if (CurrentProcess == "Test")
        //Show message then do something else
      else
        //Do Something else

JScript confirm will work with onclientClick but that is everytime the client button is clicked I only want is to show if a something is met.

I have been useing my best friend "Google" but could not find a solution to my problem.

Any Idees?

2
Contributors
7
Replies
12
Views
5 Years
Discussion Span
Last Post by geniusvishal
-2
Include the following line in the Namespace group

using System.Windows.Forms;

The include the following code in the button click event

System.Windows.Forms.MessageBox.Show("Your Message Here!");

Hope this works..

Regards,
Vishal Ranjan

0

That is a windows forms method, will this not stop server for all other users?

0

That is what I want to do. Something like JScript Confirm or Alert, but inside a method not onclient click event.

-1

Refer this link

Alternatively, You can use the following:

Response.Write("<script language='javascript'>alert('Thank You');</script>");

Edited by geniusvishal: Modification

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.