Hello Team,
I have a button inside a RadWindow and I'd like onclick for the RadWindow to close and the mainpage to redirect to another page. Can i achieve this?
This is what I have:
(Codebehind Radwindow)
(.ASPX file Radwindow)
De window does close onbuttonclick, but it wont redirect.
Any suggestions? I'd appreciate your help
~Guen~
I have a button inside a RadWindow and I'd like onclick for the RadWindow to close and the mainpage to redirect to another page. Can i achieve this?
This is what I have:
(Codebehind Radwindow)
protected void btn_NavigateGoogle_Click(object sender, EventArgs e) |
{ |
InjectScriptLabel.Text = "<script>CloseAndNavigate()</" + "script>"; |
} |
<script type="text/javascript"> |
function CloseAndNavigate() |
{ |
GetRadWindow().close(); |
window.location = Http://www.google.com; |
} |
</script> < asp:Button ID="btn_NavigateGoogle" runat="server"
Text="Close Me" onclick="btn_NavigateGoogle_Click" />
< asp:Label ID="InjectScriptLabel" runat="server" Visible="true"></asp:Label>
|
Any suggestions? I'd appreciate your help
~Guen~