Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem with asp.net 4 themes and skins

problem with asp.net 4 themes and skins

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomgraphics
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Makki
    wrote on last edited by
    #1

    Hi guys I tried applying graphics through skin using the way presented in this site http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx It worked with asp .net 3.5 but with 4.0 I didn't work. When I viewed the page source I get for asp.net 3.5 and i get for asp.net 4.0 It seems asp.net 4.0 doesn't replace ImageUrl attribute with src when rendering My question is: do I have problem with asp.net 4.0 that I need to repair/reinstall or is it something else?

    A 1 Reply Last reply
    0
    • J Jassim Makki

      Hi guys I tried applying graphics through skin using the way presented in this site http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx It worked with asp .net 3.5 but with 4.0 I didn't work. When I viewed the page source I get for asp.net 3.5 and i get for asp.net 4.0 It seems asp.net 4.0 doesn't replace ImageUrl attribute with src when rendering My question is: do I have problem with asp.net 4.0 that I need to repair/reinstall or is it something else?

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      Hi, Are you missing runat="server" attribute in imgtag?

      <img id="image" runat="server" src="~/App_Themes/test/Contoso.gif" style="border-width:0px;">

      ImageUrl is the property of asp:Image (Image control). So, you could also write like:

      <asp:Image id="MainContent_Image1" runat="server" ImagerUrl="~/images/Contoso.gif" />

      Hope this will help.

      Anurag Gandhi.
      http://www.gandhisoft.com
      Life is a computer program and every one is the programmer of his own life.
      My latest article: Group GridView Data

      J 2 Replies Last reply
      0
      • A Anurag Gandhi

        Hi, Are you missing runat="server" attribute in imgtag?

        <img id="image" runat="server" src="~/App_Themes/test/Contoso.gif" style="border-width:0px;">

        ImageUrl is the property of asp:Image (Image control). So, you could also write like:

        <asp:Image id="MainContent_Image1" runat="server" ImagerUrl="~/images/Contoso.gif" />

        Hope this will help.

        Anurag Gandhi.
        http://www.gandhisoft.com
        Life is a computer program and every one is the programmer of his own life.
        My latest article: Group GridView Data

        J Offline
        J Offline
        Jassim Makki
        wrote on last edited by
        #3

        no i am not missing anything i tried it with asp.net 3.5 and worked but i dint work with asp.net 4.0 does it work with you when using 4.0?

        1 Reply Last reply
        0
        • A Anurag Gandhi

          Hi, Are you missing runat="server" attribute in imgtag?

          <img id="image" runat="server" src="~/App_Themes/test/Contoso.gif" style="border-width:0px;">

          ImageUrl is the property of asp:Image (Image control). So, you could also write like:

          <asp:Image id="MainContent_Image1" runat="server" ImagerUrl="~/images/Contoso.gif" />

          Hope this will help.

          Anurag Gandhi.
          http://www.gandhisoft.com
          Life is a computer program and every one is the programmer of his own life.
          My latest article: Group GridView Data

          J Offline
          J Offline
          Jassim Makki
          wrote on last edited by
          #4

          thanx for the help i managed to solve it. i dunno what was my real problem ... but i started from scratch and it worked this time :S

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups