Hi All
I had designed a webapplication in that i had created some validations , now the thing is I want to give a validation on save button. do you wish to continue? i tried using one method but it is working on development environment when i deployed it it not working on cllient server.
is there any way to give a pop-up--window , the reqiurement is on my save buttoon it has to check the condition i have if else , so if condition satisfies it has to give a input message do you wish to continue
any help greatly appreciated
Loading
Suthish NairPosted Apr 2, 2011, 12:21 PM
sandeep kodepakaPosted Apr 2, 2011, 2:20 AM
thanx for the post , but the thing is when i click on my save button it has to check the condition then it has to give the confirmation box,
i have 2 conditions , so how can i work on it
sandeep kodepakaPosted Apr 2, 2011, 2:13 AM
using
[System.Runtime.InteropServices.
DllImport("user32.dll")]public static extern int MessageBox(int h, string m, string c, int type);int c = MessageBox(0, "" +abc +"" + ". Do You Wish To Continue!", "Confirm Box", 4);
if (c == 6)
{
xyz = "1";
retMessage = csLev.SaveLevRecord(mYear, empcode, leavecode, fromDate2, toDate2, nDays, startHalf, endHalf, reason, appDate, appliedBy, out abc, xyz);
}
else
{
retMessage = "";
}
}sir, it is not working on client side when i deploy itSystem.Runtime.InteropServices;
Suthish NairPosted Apr 1, 2011, 3:23 PM
Krishna GaradPosted Apr 1, 2011, 6:03 AM
ConfirmBox
Webmsg
may help you.