Code block in XScript

  1. #1

    Code block in XScript


    Is it possible to inject serverside code blocks in XScript tags?

    	<ext:XScript runat="server">
    		<script type="text/javascript">
    			var foo = '<%= this.Bar %>';

    This generates a runtime error "Code blocks are not supported in this context."

    Thanks in advance
  2. #2

    RE: Code block in XScript


    No, XScript doesn't support code blocks.
    If you need code blocks then don't use XScript. ID tokens can be replaced
    <%= Control1.ClientID %>

Similar Threads

  1. Replies: 1
    Last Post: Mar 22, 2012, 10:36 AM
  2. Lock row for block another user to edit ?
    By Aod47 in forum 1.x Help
    Replies: 7
    Last Post: Nov 28, 2011, 2:44 PM
  3. TabPanel problem, little block in or above tabs
    By beklever in forum 1.x Help
    Replies: 2
    Last Post: Jan 06, 2011, 9:06 AM
  4. [CLOSED] Block navigation with browser's back & forward button
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 08, 2010, 3:35 PM
  5. Replies: 1
    Last Post: Feb 15, 2008, 10:06 AM

Posting Permissions