3
Answers

Message box for confirm

Easa Rahmani

Easa Rahmani

16y
8.6k
1
Hello,

I am a new web programmer .
I used WebMsgBox for showing a message to user.
I need a message box for user confirm and it must be like WebMsgBox, and I can call it from C# code-behind.
Please help me that I use a message box.

Have a good time. :)

Easa
Answers (3)
0
Manish Dwivedi

Manish Dwivedi

NA 8.3k 1.2m 16y

Hi,
    Use this code for showing the confirm message box.
    buttonID.Attributes.Add("onclick","return confirm(‘Do you want to continue?’);");

 

Accepted
0
Niradhip Chakraborty

Niradhip Chakraborty

NA 6.5k 527k 16y
0
Easa Rahmani

Easa Rahmani

NA 3 0 16y
I want to call a MessageBox in C# like MsgBox in VB
that we can use from user answer.

Example:
int i = 0;
if (MessageBx("Are you sure ?"))
    i= 1;
else
   i= -1;