Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

redirecting page issue

I have a one regular aspx page and the another aspx page is has RadWindow.  From the first one, I am opening up Radwindow  aspx page. as a just popup window. Closing Radwindow is no problem with this code below I have on master page.
function Close() {
                var oWindow = GetRadWindow();
                oWindow.argument = null;
                oWindow.close();
            }
 when I use this code below on code behind, it just closes the radwindow and the main aspx page doesnt get refresh at all... Tried several things like Respond.Redirect("mymain.aspx") and Server.Transfer  etc.. What it doesn with those, it redirects to main aspx page in the second aspx page where I have Radwindow .. So, behaving really weird..

Any ideas?
 lblCloseWindow.Text = "<script type='text/javascript'>Close()</" + "script>";
ASKER CERTIFIED SOLUTION
Avatar of Ajay Sharma
Ajay Sharma
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

I replaced lnkpostback with my myMainpage.aspx , is that correct? IF so, than, on code behind page load I had put that too, but that didnt work, didnt postback... Also, I cant have that on page load because where I am calling Close() function on button click event...
Avatar of 1jaws

ASKER

Dont need that answer anymore.. Thanks though for trying to help.