Closing ASP.Net Modal dialog window after serverside event processing

Discussion in 'Software' started by alienworkshop, Aug 17, 2006.

  1. alienworkshop


    Aug 17, 2006
    Likes Received:
    Hi All,

    I have a Modal dialog box in ASP.Net that i opened through the following statement.

    function GetPopup(params)
    var dialogInputArg = new Array("Param1", "Param2");
    var dlgSettings = "center:yes;help:No;resizable:No;status:No;scroll:Yes;dialogWidth=800px;dialogHeight=600px";
    var argAdrBk = window.showModalDialog("EditContents.aspx?Mode=Preview&" + params , dialogInputArg, dlgSettings);

    if (argAdrBk == null)
    /*window.alert("Please select a recipient again.")*/

    within EditContents.aspx, i have a form where the user inserts a value and then submits the form... based upon the success or failure of the query, i need to close the Modal Dialog or keep it open but show an error message.

    I am using the serverside click event of the submit button to insert values and show the success message..

    lblmsg.text = "Valule inserted successfully"

    But once i press the submit button, it pop ups a new window that contains the same webform but displays only the lable control lblmsg with the success message.

    i want to close the Modal Dialog here.

    Thanks A lot in advance,

    alienworkshop, Aug 17, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.