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. How can i?

How can i?

Scheduled Pinned Locked Moved ASP.NET
question
7 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.
  • U Offline
    U Offline
    User 4645177
    wrote on last edited by
    #1

    How can we insert an image in a textbox... I mean i like to put the image in search textbox.... we can find this in some sites like apple...

    C T G 3 Replies Last reply
    0
    • U User 4645177

      How can we insert an image in a textbox... I mean i like to put the image in search textbox.... we can find this in some sites like apple...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Give us a link. You cannot put an image inside a textbox. OK, I see. you have images on either side of a textbox that make it look that way. It's just a textbox with pictures next to it.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      U 1 Reply Last reply
      0
      • U User 4645177

        How can we insert an image in a textbox... I mean i like to put the image in search textbox.... we can find this in some sites like apple...

        T Offline
        T Offline
        Thats Aragon
        wrote on last edited by
        #3

        Hi, Please try this. .textboxstyle{ background-image:url('http://library.mit.edu/exlibris/aleph/u16_1/alephe/www_f_eng/icon/v-icon-3.gif'); background-repeat: no-repeat; background-position: center left; padding-left: 18px; }

        Keep Smiling :)

        U 1 Reply Last reply
        0
        • U User 4645177

          How can we insert an image in a textbox... I mean i like to put the image in search textbox.... we can find this in some sites like apple...

          G Offline
          G Offline
          Gandalf_TheWhite
          wrote on last edited by
          #4

          Hi U can try this in ur CSS Class background-image: url(Image/Image1.jpg); If any problem in this then give reply..... If this Reply Help u , THen don't forget to give ratings...

          Just Do IT™ [Information Technology]™ :->

          1 Reply Last reply
          0
          • T Thats Aragon

            Hi, Please try this. .textboxstyle{ background-image:url('http://library.mit.edu/exlibris/aleph/u16_1/alephe/www_f_eng/icon/v-icon-3.gif'); background-repeat: no-repeat; background-position: center left; padding-left: 18px; }

            Keep Smiling :)

            U Offline
            U Offline
            User 4645177
            wrote on last edited by
            #5

            Wow...! Thnkyou so much Shah Its working out... :)

            1 Reply Last reply
            0
            • C Christian Graus

              Give us a link. You cannot put an image inside a textbox. OK, I see. you have images on either side of a textbox that make it look that way. It's just a textbox with pictures next to it.

              Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              U Offline
              U Offline
              User 4645177
              wrote on last edited by
              #6

              How about if i write the following code...? <html><head> <style type="text/css"> .textboxstyle{ background-image:url('http://library.mit.edu/exlibris/aleph/u16\_1/alephe/www\_f\_eng/icon/v-icon-3.gif'); background-repeat: no-repeat; background-position: center left; padding-left: 18px; } </style> </head> <body> <input type="text" name="uname" class="textboxstyle"> </input></body> </html>

              C 1 Reply Last reply
              0
              • U User 4645177

                How about if i write the following code...? <html><head> <style type="text/css"> .textboxstyle{ background-image:url('http://library.mit.edu/exlibris/aleph/u16\_1/alephe/www\_f\_eng/icon/v-icon-3.gif'); background-repeat: no-repeat; background-position: center left; padding-left: 18px; } </style> </head> <body> <input type="text" name="uname" class="textboxstyle"> </input></body> </html>

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                If that works, then that is news to me. Well, live and learn. Apparently, you can do this. Which means that a web browser rolls it's own text control, it doesn't use the windows one.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                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