or

Just having an issue using the radalert popup functionality...
I'm using the approach from one of the help items like this:
Label1.Text = "<script language='javascript'> window.onload = function(){radalert('<b>Please enter quantity!</b>','', 150, 100);}</script>";
Having RadWindowManager control on the page so that should not be a problem.
However, it gives out an error on this line:
return d.radalert(e,c,a,b);
Microsoft JScript runtime error: 'undefined' is null or not an object
And then:
Microsoft JScript runtime error: Object doesn't support this property or method
Which doesn't seem to make sense, I thought that that was the parameters it was expecting!
| [assembly: TagPrefix("NCS_Black.CustomControls.NCSBlackRadDock", "c1")] |
| namespace NCS_Black.CustomControls.NCSBlackRadDock |
| { |
| [ToolboxData("<{0}:NCSBlackRadDock ID='NCSBlackRadDock1' runat=\"server\"> </{0}:NCSBlackRadDock>")] |
| public class NCSBlackRadDock: Telerik.Web.UI.RadDock |
| { |
| protected override void OnLoad(EventArgs e) |
| { |
| } |
| protected override void OnInit(EventArgs e) |
| { |
| base.OnInit(e); |
| // INCLUDE A WIDGET SPECIFIC ICON (IF AVAILABLE) |
| Image icon = new Image(); |
| icon.ImageUrl = "~/Prototype/Modules/HttpWebRequest/Images/Config.png"; |
| icon.CssClass = "imgFloatLT Middle"; |
| this.TitlebarContainer.Controls.Add(icon); |
| // INCLUDE WIDGET SETTINGS CONTROL IN TITLEBAR (IF AVAILABLE) |
| DockCommand _Edit = new DockCommand(); |
| _settings.Name = "Widget_Settings"; |
| _settings.Text = "Edit"; |
| this.Commands.Add(_settings); |
| // INCLUDE REFRESH TIMESTAMP |
| Panel _timePanel = new Panel(); |
| _timePanel.CssClass = "WidgetTimestamp"; |
| Label _timeStamp = new Label(); |
| _timeStamp.Text = DateTime.Now.ToShortTimeString(); |
| _timePanel.Controls.Add(_timeStamp); |
| this.ContentContainer.Controls.Add(_timePanel); |
| } |
| } |
| } |
| <body> |
| <form id="form1" runat="server" style="height:100%"> |
| <div id="silverlightControlHost"> |
| <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> |
| <param name="source" value="ClientBin/BioDMap.xap"/> |
| <param name="onError" value="onSilverlightError" /> |
| <param name="background" value="white" /> |
| <param name="minRuntimeVersion" value="3.0.40624.0" /> |
| <param name="autoUpgrade" value="true" /> |
| <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"> |
| <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/> |
| </a> |
| </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div> |
| </form> |
| </body> |