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

Usercontrol not allow open popup as <% %>

3 Answers 95 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 26 Mar 2008, 03:39 PM
Hi,

My solution not allow to open Popup as javascript with call the <%  %> expressions. I'm work with one Usercontrol inside masterpage. How to open showpopup for Date and Time picking as codebehind not javascript?

System.Web.HttpException: La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Not workking expressions in my solution

<script type="text/javascript">
          function OnOpen1()
          {
                     <%= RadDatePicker1.ClientID %>.ShowPopup();
            var datePicker = $find("<%= RadDatePicker1.ClientID %>"); 
            datePicker.get_selectedDate();  */
         }
              

3 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 26 Mar 2008, 04:33 PM
Hi Pierre,

Please, wrap the script in Telerik.Web.UI RadCodeBlock  to avoid this error. You can read more about that here.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jean-marc
Top achievements
Rank 1
answered on 20 Jul 2011, 12:26 PM
The link don't run !!!!!!!!!!
0
Iana Tsolova
Telerik team
answered on 20 Jul 2011, 03:46 PM
Hi Jean-Marc,

Here is the proper link:
http://www.telerik.com/help/aspnet-ajax/ajax-radscriptblock-radcodeblock.html

Best wishes,
Iana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Calendar
Asked by
Pierre
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
jean-marc
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or