0

Hi,
I used the confirmation in a page when one of the ultrawebgridcell updated.I used the following code.

private void MessageBox(string msg)
    {
        Label lbl = new Label();
        lbl.Text = "<script language='javascript'>" + Environment.NewLine + "window.confirm('" + msg + "')</script>";
        Page.Controls.Add(lbl);
    }
 protected void uwgSelected_UpdateCell(object sender, CellEventArgs e)
    {
           MessageBox("Continue or Not");
           empDtls.employeedetails(0, dEmpId, sName, sGender, dtDOB, 0, "", 0, 0, 0, 0, 0, 0, 0, iDesgnId, dtime, 0, ideptId, 0, 0, "", "", "", "", 0, "",0);
                    cvselected.fCVSelected(0, 0, iCVId, srefNo, 0, dtime, dtime, "", 0, dtime, "", "",dEmpId);
     }

I want to gte the result of confirmation for further processing.
The codes after the Messagebox calling, executes only if the confirmation messga is true.
How can I implement it.
Thanks in advance.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by serkan sendur
0

dont create your confirm box script that way, just add it to your page between script tags, and while rendering the grid, add that function name along with the message parameter to grid cells' onclick attribute.

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.