Hi Experts,
I am using gridview with template field for diaplay data. In the template field there is a link button for edit the quantity. While clicking link button i am calling a javascript for open a new window. Meanwhile i need to close current web page while it transfers.. Though i am using window.self.close() in function, it dosen't works for me.. My script function is given below
function editQuantity(order_id)
{
var scrWidth = screen.width;
var scrHeight = screen.height;
var winWidth = 500;
var winHeight = 175;
var winLeft = (scrWidth - winWidth)/2;
var winTop = (scrHeight - winHeight)/2;
var strFeatures = "toolbar=0,location=0,widt
h=" + winWidth + ", height=" + winHeight + ", top=" + winTop + ", left=" + winLeft + ", status=0, scrollbars=0";
//alert('../AddPartNumbert
oCart.aspx
?Partno='+
partno+'&D
escription
='+desc);
window.self.close();
window.open('../ShoppingCa
rt/EditCar
tQuantity.
aspx?order
_id='+orde
r_id, 'EditQuantity', strFeatures);
return false;
}
Any help would be appreciated.
Thanks in advance.
Regards,
Ravi
Start Free Trial