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