[CLOSED] How to access server side variable in XScript

  1. #1

    [CLOSED] How to access server side variable in XScript

    <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Main.Master" CodeBehind="Test.aspx.vb" Inherits="ABConnect.Test" %>
    
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
            <abx:ABXScript ID="XScript1" runat="server">
            <script type="text/javascript">
                var textSelection = {
                    documentDownloadTitleText: <%= CultureResources.common_TooManySections%>
                }
    
            </script>
        </abx:ABXScript>
        <div class="mainContentAreaBorderedTop_NoTab"></div>
        <div class="mainContentAreaBordered">
            <input id="Button2" type="button" value="textSelection.documentDownloadTitleText;" />
            
        </div>
    </asp:Content>
    Last edited by Daniil; Dec 13, 2013 at 5:53 AM. Reason: [CLOSED]
  2. #2
    The <%= CultureResources.common_TooManySections%> is not getting recognized in javascript.
    Last edited by geoffrey.mcgill; Dec 07, 2013 at 12:00 AM.
  3. #3
    If the following is outputing a string, then you should wrap in quotes:

    documentDownloadTitleText: '<%= CultureResources.common_TooManySections%>'
    Geoffrey McGill
    Founder
  4. #4
    When posting code samples to the forums, please ensure you wrap your code samples in [CODE] tags.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Progress Bar server side Session Value access Problem
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 11, 2012, 11:15 AM
  2. Replies: 0
    Last Post: May 10, 2012, 12:38 PM
  3. Access textfield from server side
    By toinho in forum 1.x Help
    Replies: 3
    Last Post: Feb 14, 2010, 4:19 PM
  4. Replies: 4
    Last Post: Feb 04, 2010, 7:58 AM
  5. [CLOSED] How to Access a Session Variable
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 14, 2009, 2:01 PM

Posting Permissions