[CLOSED] get png the Ext Resources

  1. #1

    [CLOSED] get png the Ext Resources

    how do I put in a button image Ext.Net.Build.Ext.Net.icons.next_blue.png? It's in the Ext Resources
    Last edited by Daniil; Mar 05, 2012 at 10:21 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use the ResourceManager GetIconUrl method.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            this.ImageButton1.ImageUrl = this.ResourceManager1.GetIconUrl(Icon.NextBlue);
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:ImageButton ID="ImageButton1" runat="server" />
    </body>
    </html>

Similar Threads

  1. [CLOSED] New Culture Resources
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 04, 2012, 2:02 PM
  2. [CLOSED] My own resources with id
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 18, 2011, 1:53 PM
  3. [CLOSED] CSS Resources - Photoshop ?
    By sisa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 06, 2011, 12:25 PM
  4. [CLOSED] [MVC] Extend EXT Resources
    By tiramisu in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 29, 2010, 1:32 PM
  5. Replies: 2
    Last Post: May 12, 2010, 12:34 PM

Posting Permissions