Nov 04, 2010, 1:01 PM
[CLOSED] Redirect to other url in Window
Probably simple, but I can't figure it out.
I'm calling a DirectMethod from javascript Like this:
What am I doing wrong here ?
Martin
I'm calling a DirectMethod from javascript Like this:
function changePage(jaar, kwartaal) {
Ext.net.DirectMethods.refreshWindow(jaar, kwartaal);
}
Code Behind: [DirectMethod]
public void refreshWindow(Int32 Jaar, Int32 Kwartaal)
{
Session["Jaar"] = Jaar;
Session["Kwartaal"] = Kwartaal;
//Open other url in THIS current window (iframe)
X.Redirect("http://www.google.nl");
}
The sessions are set, but the redirect (url change of the current window) fails ?What am I doing wrong here ?
Martin
Last edited by Daniil; Nov 04, 2010 at 4:14 PM.
Reason: [CLOSED]