Closing ASP.Net Modal dialog window after serverside event processing

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

  1. alienworkshop

    alienworkshop

    Joined:
    Aug 17, 2006
    Messages:
    1
    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.")*/
    }
    else
    {

    }
    }
    ------------
    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
    alienworkshop, Aug 17, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ted Jones
    Replies:
    1
    Views:
    3,154
    old jon
    Aug 29, 2005
  2. Siva_iGate

    Modal Dialog

    Siva_iGate, Oct 18, 2007, in forum: General Computer Support
    Replies:
    1
    Views:
    957
    Siva_iGate
    Oct 18, 2007
  3. rchimakurty
    Replies:
    2
    Views:
    1,333
    rchimakurty
    Nov 28, 2007
  4. Ane007
    Replies:
    1
    Views:
    2,649
    apulmca2k4
    May 5, 2008
  5. srivatsahg
    Replies:
    0
    Views:
    1,348
    srivatsahg
    Mar 2, 2009
Loading...

Share This Page