[CLOSED] [1.0] ImageUrl property in Ext.Net.Portlet

  1. #1

    [CLOSED] [1.0] ImageUrl property in Ext.Net.Portlet

    How can I set the ImageUrl property for portlet in code behind?
    <ext:Portlet ID="p5" runat="server" Draggable="true"  Header="false"  ImageUrl="UI/Catalog1/Widget-Links.png"  >  
               <asp:Image ID="Image1" runat="server" ImageUrl="UI/Catalog1/Widget-Links.png" />   
    code behind:
    Dim portlet1 As New Ext.Net.Portlet()
       portlet1.ID = "p5"
       portlet1.Draggable = True
       portlet1.Header = False
       If Not String.IsNullOrEmpty("UI/Catalog1/Widget-Links.png") Then
          Dim img As New System.Web.UI.WebControls.Image
          img.ID = "Image1"
          img.ImageUrl = ="UI/Catalog1/Widget-Links.png"
          portlet1.ImageUrl = "UI/Catalog1/Widget-Links.png"
       End If
    End Try
    I need this property in my DuplicatePortlets javascript method.
    Last edited by Daniil; Nov 03, 2010 at 8:16 PM. Reason: [CLOSED]
  2. #2

    Please use CustomConfig collection
    portlet.CustomConfig.Add(new ConfigItem("imageUrl", "UI/Catalog1/Widget-Links.png", ParameterMode.Value));
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    [CLOSED] thanks

    thanks Vlad.. I knew that.. just forgot. We've covered a lot of things here.:)

Similar Threads

  1. Replies: 4
    Last Post: Apr 08, 2010, 9:05 PM
  2. [CLOSED] Portlet closable and closeaction property obsolete?
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 01, 2010, 5:27 PM
  3. Replies: 0
    Last Post: Mar 03, 2010, 10:51 AM
  4. Code behind setting Title property on portlet fails
    By netwearcdz in forum 1.x Help
    Replies: 3
    Last Post: Jan 15, 2010, 4:36 PM
  5. Set ImageURL
    By Maia in forum 1.x Help
    Replies: 1
    Last Post: Jan 10, 2010, 10:14 AM

Posting Permissions