hi
I have this problem where the code behind was not executed because of the redirection: I want my code behind to be executed before redirection. But it seems that it gets redirected before it can execute the codebehind code. How do i solve this? Thanks
ASPX:
<script type="text/javascript">
function close()
{
self.close();
}
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function closeWin()
{
var oWnd = GetRadWindow();
//top.location.href = 'http://localhost/demo/default.aspx';
oWnd.close();
}
</script>
<td align="center">
<asp:Button ID="btnDone" runat="server" onclientclick="closeWin()" CssClass="RadMenu_Black"
Font-Bold="True" ForeColor="#333333" Text="Done" />
Code Behind:
Protected Sub btnDone_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDone.Click
MethodA(session("x"))
MethodB(Session("x"))
End Sub
I have this problem where the code behind was not executed because of the redirection: I want my code behind to be executed before redirection. But it seems that it gets redirected before it can execute the codebehind code. How do i solve this? Thanks
ASPX:
<script type="text/javascript">
function close()
{
self.close();
}
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function closeWin()
{
var oWnd = GetRadWindow();
//top.location.href = 'http://localhost/demo/default.aspx';
oWnd.close();
}
</script>
<td align="center">
<asp:Button ID="btnDone" runat="server" onclientclick="closeWin()" CssClass="RadMenu_Black"
Font-Bold="True" ForeColor="#333333" Text="Done" />
Code Behind:
Protected Sub btnDone_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDone.Click
MethodA(session("x"))
MethodB(Session("x"))
End Sub