Hi,
I have a button(addproduct) on my Product.aspx page and when I click on that button I get a pop up window(radwindow) whose url points to some other page(productsearch.aspx) which has a cancel and save button. Now, What I need to do is, when I click the cancel button, the popup window should close and I should be back on the product page without losing whatever data I already have in the product.aspx page.
I need to do this on the client side so I have to use javascript. The code which I have for the window popup is
function openWin(){
var oWnd = radopen("../product/Productsearch.aspx","productsearchwindow");
return false;
}
the productsearchwindow is the id of the radwindow and I call the openWind() function on the onclientlclick event of the addproduct button on product.aspx page
I probably have to write some javascript in the productsearch.aspx page as the save button is in that page and the popup url points to this productsearch page.
Can anyone help me in writing the js code.
Thank You,
Vik
I have a button(addproduct) on my Product.aspx page and when I click on that button I get a pop up window(radwindow) whose url points to some other page(productsearch.aspx) which has a cancel and save button. Now, What I need to do is, when I click the cancel button, the popup window should close and I should be back on the product page without losing whatever data I already have in the product.aspx page.
I need to do this on the client side so I have to use javascript. The code which I have for the window popup is
function openWin(){
var oWnd = radopen("../product/Productsearch.aspx","productsearchwindow");
return false;
}
the productsearchwindow is the id of the radwindow and I call the openWind() function on the onclientlclick event of the addproduct button on product.aspx page
I probably have to write some javascript in the productsearch.aspx page as the save button is in that page and the popup url points to this productsearch page.
Can anyone help me in writing the js code.
Thank You,
Vik