hello,
use a radwindow to create a custom message. I have a problem, when you acknowledge that you have read the message, the radwindow must close and you must open a normal aspx page. To close the radwindow use this code that runs a javascript function:
code vb.net:
code html:
now here's the code I would use to close the radwindow and open a normal page aspx:
but the page is loaded into the profilo.aspx radwindow instead I would like to close the radwindow and open the page profilo.aspx, how do it?
Bye
use a radwindow to create a custom message. I have a problem, when you acknowledge that you have read the message, the radwindow must close and you must open a normal aspx page. To close the radwindow use this code that runs a javascript function:
code vb.net:
Me
.ClientScript.RegisterStartupScript(
Me
.
GetType
,
""
,
"Close();"
,
True
)
code html:
<
script
type
=
"text/javascript"
>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function Close() {
GetRadWindow().close();
}
</
script
>
now here's the code I would use to close the radwindow and open a normal page aspx:
Protected
Sub
ImgBtncontinua_Click(sender
As
Object
, e
As
System.Web.UI.ImageClickEventArgs)
Handles
ImgBtncontinua.Click
Me
.ClientScript.RegisterStartupScript(
Me
.
GetType
,
""
,
"Close();"
,
True
)
Session.Add(
"Profilo"
, 0)
Response.Redirect(
"~/profilo.aspx"
)
End
Sub
but the page is loaded into the profilo.aspx radwindow instead I would like to close the radwindow and open the page profilo.aspx, how do it?
Bye