Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 08-17-2006, 09:45 AM   #1
Default Closing ASP.Net Modal dialog window after serverside event processing


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=Pre view&" + 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
alienworkshop is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modal Dialog Siva_iGate General Help Related Topics 1 10-18-2007 09:38 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46