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>";
1jawsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ajay SharmaCommented:
In the Close function you need to trigger the page postback.

I aspx page change your function:

function Close()
{
     var oWindow = GetRadWindow();
     oWindow.argument = null;
     oWindow.close();
     __doPostBack('lnkpostback', '');
}


In the code behind file change Page_load :
if (Page.IsPostBack == true && Request["__EVENTTARGET"] != null && Request["__EVENTTARGET"].ToString() == "lnkpostback")
{
    //do your conditional work here
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1jawsAuthor Commented:
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...
0
1jawsAuthor Commented:
Dont need that answer anymore.. Thanks though for trying to help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.