This is a migrated thread and some comments may be shown as answers.

RadNotification Control Not in ToolBox

5 Answers 63 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 22 Sep 2011, 05:09 PM
Hello,

I have downloaded the update through visual studio, but I still dont have the "RadNotification" control in my toolbox. Also it's not recognized through code. Could you please explain how I can get this control? I have the RadControls for ASP.NET AJAX (.NET 3.5).

Thanks!

5 Answers, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 2
answered on 22 Sep 2011, 05:24 PM
Updated project and I can now access the RadNotification from code, but still not in toolbox.
0
Marin Bratanov
Telerik team
answered on 23 Sep 2011, 11:04 AM
Hello Nathan,

Give the instructions from this help article: http://www.telerik.com/help/aspnet-ajax/introduction-adding-to-vs-toolbox-net4.html a try and see if you can update the toolbox like this. From what I can gather it seems that you have only downloaded the new DLLs and have not installed the full suite from the msi file, which is the most probable reason why the new set of tools has not been added to the VS toolbox.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Nathan
Top achievements
Rank 2
answered on 23 Sep 2011, 03:08 PM
Thank you for you fast response! I started following the instructions and noticed I had two sections of toolbox items for RadControls. I removed the Q1 section and now only have the Q2 which has RadNotification control.

Thanks for you help!!
0
Nathan
Top achievements
Rank 2
answered on 23 Sep 2011, 03:13 PM
One more thing, I created a sample page with the RadNotification control just like the "Session Timeout Notification" demo example. However, when I copied the source code I put the "<Script>" section in the <HEAD>" where I normally put all scripts, but this caused problems with the page. But, when I put the script under the "RadScriptManager", exactly like the example, it worked. Could you explain why the scripts must be placed under the "RadScriptManager" and not in the "Head"?

http://demos.telerik.com/aspnet-ajax/notification/examples/sessiontimeout/defaultcs.aspx

<body class="BODY">
    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <script type="text/javascript">
            ... Scripts go here.
    </script>

   <telerik:RadNotification ID=.... />



Thanks!!
0
Marin Bratanov
Telerik team
answered on 26 Sep 2011, 11:52 AM
Hi Nathan,

The error I believe you have seen is that "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).". This is a general issue in ASP and AJAX when server code blocks are used in the head section and is not directly related to the RadNotification. The general solution for this error  is to move the scripts in the body, or you can wrap them in a RadCodeBlock control.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Notification
Asked by
Nathan
Top achievements
Rank 2
Answers by
Nathan
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or