I have a aspx-page (Y) and I use showmodal to open a window (X)where the user can choose a value. The value comes in a textbox on page Y and the window X closes again.
It works perfect, but after this my page Y every time looks like to refresh. And that is wat I don't want.
Showmodal i a script:
function GoLookSomething(t1,t2)
{
//declare a object variable
var retval = new Object();
//show modal dialog box and collect its return value
retval=window.showModalDialog
("LU_Something.aspx",window,
"DialogHeight=500px; Toolbar=no; Titlebar=no; DialogWidth=640px; Center=yes;"+
"Status=no; Resizable=yes; Scrolling=yes; Help=no;");
//check if user closed the dialog
//without selecting any value
if(retval!=null)
{
//fill the textbox(es) with selected value
document.getElementById(t1).value=retval.Val1;
document.getElementById(t2).value=retval.Val2;
}
}
Who knows how I can stop this refereshing/postback.
It works perfect, but after this my page Y every time looks like to refresh. And that is wat I don't want.
Showmodal i a script:
function GoLookSomething(t1,t2)
{
//declare a object variable
var retval = new Object();
//show modal dialog box and collect its return value
retval=window.showModalDialog
("LU_Something.aspx",window,
"DialogHeight=500px; Toolbar=no; Titlebar=no; DialogWidth=640px; Center=yes;"+
"Status=no; Resizable=yes; Scrolling=yes; Help=no;");
//check if user closed the dialog
//without selecting any value
if(retval!=null)
{
//fill the textbox(es) with selected value
document.getElementById(t1).value=retval.Val1;
document.getElementById(t2).value=retval.Val2;
}
}
Who knows how I can stop this refereshing/postback.