WebDialog

G

Gunawan

Dear All,
I have successfully call an asp.net webdialog using javascript.
<script language="javascript" type="text/javascript">
function OpenChild()
{
var vKodeCustomer = document.getElementById("tbKodeCustomer").value;
var vNamaCustomer = document.getElementById("tbCustomerName").value;
var vWilayah = document.getElementById("tbWilayah").value;
var vShipVia = document.getElementById("tbShipVia").value;
var vKodeDC = document.getElementById("ddlKodeDC").value;
var ChildArgs = new Array();
ChildArgs[0] = vKodeCustomer;
ChildArgs[1] = vNamaCustomer;
ChildArgs[2] = vWilayah;
ChildArgs[3] = vShipVia;
ChildArgs[4] = vKodeDC;
var WinSettings =
"center:yes;resizable:no;dialogHeight:600px;dialogWidth=800px"
//ALTER BELOW LINE - supply correct URL for Child Form
var ResultArgs =
window.showModalDialog("http://localhost:2830/Lighthouse/Setup/custrutekapal.aspx",
ChildArgs, WinSettings);
if (ResultArgs == null)
{
//window.alert("Nothing returned from child. No changes made to
input boxes");
}
else
{
//retvalA.value=MyArgs[0].toString();
}
}
</script>

But postback for example click on button on webdialog (child) always create
new non dialog page.
How to fixed it?

TIA,
Gun
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top