I created two radwindows which i'd like to serve as result alerts after a user tries to upload files to a database. they select the files, then click an upload button.
What I'd like to do is open either the 'success' radwindow or the 'fail' radwindow based on whether or not the upload was successful. I tried using client script manager in codebehind to open the windows but it isn't working.
What I'd like to do is open either the 'success' radwindow or the 'fail' radwindow based on whether or not the upload was successful. I tried using client script manager in codebehind to open the windows but it isn't working.
int
result = cmd.ExecuteNonQuery();
if
(result < 1)
{
String strFail =
"<script type=text/javascript> var oWnd = radopen(null, 'fail');</script>"
;
ClientScriptManager sm = Page.ClientScript;
sm.RegisterStartupScript(
this
.GetType(),
"upFail"
, strFail);
}
else
{
String strSuccess =
"<script type=text/javascript> var oWnd = radopen(null, 'success');</script>"
;
ClientScriptManager sm = Page.ClientScript;
sm.RegisterStartupScript(
this
.GetType(),
"upSuccess"
, strSuccess);