Dear All,
I want to be able to open either radwindow & radalert or radconfirm from a method on a user-control (codebehind).
I went through all the posted threads but just can't get it to work unless I put the following code:
I just don't wanted that way, I need to have a method that takes the title & message so I try the following :
which I took it from a previous post, but it has a syntax error. and didn't work for me.
and what is the scenario for radwindow.
best regards
Waleed
I want to be able to open either radwindow & radalert or radconfirm from a method on a user-control (codebehind).
I went through all the posted threads but just can't get it to work unless I put the following code:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "RadAlertScript", "Sys.Application.add_load(function(){radalert('XML Values Loaded Succesfully!!');});", true); |
protected void ShowAlert(string msg) |
{ |
string myScript = string.Format("Sys.Application.add_load(function(){radalert('A string', 200,300,'{0}');})",msg); |
Page.ClientScript.RegisterStartupScript(this.GetType(), "SCR", myScript, true); |
} |
and what is the scenario for radwindow.
best regards
Waleed