using <asp:...> in <script type"text/javascript"> blocks

Thread is closed for posting
2 posts, 0 answers
  1. Jerremy
    Jerremy avatar
    9 posts
    Member since:
    Apr 2009

    Posted 20 Jan 2010 Link to this post

    JustCode gives an error when you do this:
    <script type="text/javascript">
        var blabla = <asp:Literal ID="lBlaBla" runat="server"></asp:Literal>;

    It'll also say (in the code behind) that lBlaBla doesn't exist.

    And while it might not be "best practice" to do this, ASP.NET doesnt mind you doing it.
  2. Tsviatko Yovtchev
    Tsviatko Yovtchev avatar
    538 posts

    Posted 21 Jan 2010 Link to this post

    Hi Jerremy,

     Thanks for taking the time to contact us on that issue. We have already had similar issues reported and we are currently working on improving our <asp:Literal> support (that is the root of the problem). The fix is scheduled for release two weeks from now. So, please stay tuned. And do not hesitate to contact us if you have any further problems.

    Tsviatko Yovtchev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top