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 mage tag

Problem with mage tag

Scheduled Pinned Locked Moved ASP.NET
help
4 Posts 4 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.
  • I Offline
    I Offline
    IT_Help
    wrote on last edited by
    #1

    Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!

    E A 2 Replies Last reply
    0
    • I IT_Help

      Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!

      E Offline
      E Offline
      Enver Maroshi
      wrote on last edited by
      #2

      <%= you are missing "=" char

      1 Reply Last reply
      0
      • I IT_Help

        Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        IT_Help wrote:

        the tag is

        use

        IT_Help wrote:

        this does not show any image and on checking the properties of image it says no URL defined

        What is the hidden1.value returning, From Are you giving the path ??

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        R 1 Reply Last reply
        0
        • A Abhijit Jana

          IT_Help wrote:

          the tag is

          use

          IT_Help wrote:

          this does not show any image and on checking the properties of image it says no URL defined

          What is the hidden1.value returning, From Are you giving the path ??

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

          R Offline
          R Offline
          renjithmp
          wrote on last edited by
          #4

          Add this code in your aspx page. <INPUT type="hidden" id="MyHiddenField" runat="server" value="http://tbn2.google.com/xy/ab.JPG"> <img runat="server" id="hiddenImg" alt="" /> and in code behind add this code HtmlInputHidden hidden = (HtmlInputHidden)Page.FindControl ("MyHiddenField"); Img.Src = hidden.Value; Hope this help.

          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