This is a migrated thread and some comments may be shown as answers.

Closing Pop up Radwindow

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
getset
Top achievements
Rank 1
getset asked on 04 Nov 2010, 07:35 AM
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



1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 04 Nov 2010, 10:11 AM
Hi GetSet, 

You've added this to the WinForms forums and I think you need the asp.net forums. May I suggest re-adding your post to the other forum. 
Thanks
Richard
Tags
General Discussions
Asked by
getset
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or