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. display image in repeater and retrieve its tooltip value

display image in repeater and retrieve its tooltip value

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
2 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.
  • G Offline
    G Offline
    gautamamit8
    wrote on last edited by
    #1

    Hi all I found a problem when I use repeater control.I use a Image button and store image id in Tool Tip of Image button but i unable to get the tool tip value in a another text box which is outside of repeater on my form. for more details- I use modelpopup ajax control inside it i take update Panel in updatepanel i use repeater and in repeater i take ImageButton. Any help would be appreciateable I know its a bit hectic but developer is a person who overcomes it.

    A 1 Reply Last reply
    0
    • G gautamamit8

      Hi all I found a problem when I use repeater control.I use a Image button and store image id in Tool Tip of Image button but i unable to get the tool tip value in a another text box which is outside of repeater on my form. for more details- I use modelpopup ajax control inside it i take update Panel in updatepanel i use repeater and in repeater i take ImageButton. Any help would be appreciateable I know its a bit hectic but developer is a person who overcomes it.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      First of all, You might have used ItemDataBound to set the value of TextBox. Also to remind, if you are using a Repeater, and the imagebutton is inside the ItemTemplate, you are having more than one ImageButton while there will be only on textbox which is placed outside the textbox. If you want the text to appear whenever you click on the ImageButton, there is also a problem. You said, you have placed the Repeater inside an undatepanel while the textbox is outside it. In case of UpdatePanel, a separate form is created in the client and posted to the server as request with only those controls which are inside the UpdatePanel. Thus in server side, if you set the value of the Textbox, it will not be transferred to the client and therefore will not update the control in the client. So Rather than updating the server side object, you can either place the textbox inside the update panel or you inject some javascript which will update the value of the textbox upon receiving the response to the client. I am talking about

      ScriptManager1.RegisterStartupScript()

      I hope you got the idea. Cheers. ;)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      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