Cant use Inline Server Tags in server markup

  1. #1

    Cant use Inline Server Tags in server markup

    Hi,
    I want use some inline server tags in markup file. but i get an error. Ext.NET dont support inline server tag, do it? Please explain to me!

    Here is my code
    <Listeners>
                <DataChanged 
                    Handler="var record = this.getAt(<% Response.Write(Session["index"].ToString()); %>) || {};#{FormPanel1}.getForm().loadRecord(record);" 
                    Delay="10" 
                    />
    </Listeners>
    error is here:
    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Content ('<DataChanged
    Handler="var record = this.getAt(') does not match any properties within a 'Ext.Net.StoreListeners', make sure it is well-formed.

    Source Error:


    Line 107: </Reader>
    Line 108: <Listeners>
    Line 109: <DataChanged
    Line 110: Handler="var record = this.getAt(<% Response.Write(Session["index"].ToString()); %>) || {};#{FormPanel1}.getForm().loadRecord(record);"
    Line 111: Delay="10"

    Source File: /HoSo/frmHoSo.aspx Line: 109

    Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420
    Regards,
    Anh N.T
  2. #2
    Do you able to mix inline server tags with text inside a property of a standard ASP.NET control? I don't think so. It is limitation of ASP.NET (not Ext.Net)

Similar Threads

  1. Connect to sql server
    By Vaishali in forum 1.x Help
    Replies: 1
    Last Post: Jan 05, 2012, 10:36 AM
  2. [CLOSED] Embedding server tags in TemplateColumn
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 30, 2011, 1:39 PM
  3. Replies: 0
    Last Post: Jul 19, 2011, 3:15 PM
  4. Replies: 4
    Last Post: Jun 09, 2009, 3:05 PM
  5. ASP.NET Server controls
    By chad in forum Open Discussions
    Replies: 4
    Last Post: Aug 02, 2008, 6:08 PM

Posting Permissions