or

| <telrik:RadGrid ID="rg" runat="server" ....> |
| <MasterTableview DataSourceId="odsProducts"> |
| <Columns> |
| <telerik:GridTemplateColumn HeaderText="Product"> |
| <ItemTemplate> |
| <asp:HyperLink ID="hlProduct" runat="server" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Price"> |
| <ItemTemplate> |
| <asp:HyperLink ID="hlPrice" runat="server" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView |
| </telerik:RadGrid> |
| <telerik:RadToolTipManager ID="rttManager" runat="server" Position="BottomCenter" RelativeTo="Element" Animation="Fade" /> |
| rttManager.WebServiceSettings.Path = "~/WebServices/AppWebService.asmx"; |
| rttManager.WebServiceSettings.Method = "GetProductToolTips"; |
| rttManager.HideEvent = ToolTipHideEvent.LeaveTargetAndToolTip; |
| rttManager.TargetControls.Add(hlProducts.ClientID, productId.ToString(), true); |
| [WebMethod] |
| public string GetProductToolTips (object context) |
| { |
| IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context; |
| string productId = ((string)contextDictionary["Value"]); |
| if (String.IsNullOrEmpty(productId)) |
| return String.Empty; |
| else |
| return RenderViewManager.RenderView("~/Products/UserControls/ProductToolTip.ascx"); |
| } |
Protected Sub GridViewDataSource_Inserted(ByVal sender As Object, ByVal e As SqlDataSourceStatusEventArgs) Handles GridViewDataSource.Inserted Dim command As DbCommand command = e.Command If Not e.Exception Is Nothing Then e.ExceptionHandled = True SetMessage("Data cannot be inserted. Reason: " + e.Exception.Message) Else If command.Parameters("@RetMsg").Value.ToString().Length > 0 Then SetMessage("Data cannot be inserted. Reason: " + command.Parameters("@RetMsg").Value.ToString()) Else SetMessage("New data has been inserted") End If End If End Sub<telerik:RadToolTip ManualClose="true" ShowEvent="FromCode" ID="RadToolTip2" Skin="Vista" RelativeTo="Mouse" runat="server" TargetControlID="btnTooltipView" IsClientID="true"> <div style="margin:5px 5px 0px 5px; font-size:12px; padding-bottom: 10px;"> <div style="border-bottom:solid 1px #ccc;margin-bottom:9px;font-size:11px;">First Name: Elizabeth <br /> Last Name: Jones <br /></div> Notes:<br /> <asp:Label runat="server" ID="StartingOn" Text="Another general note added to appointment."></asp:Label> </div> </telerik:RadToolTip> Here btnTooltipView is id of button in repeter template. My problem is that on browser there is many buttons with same name appears.so when i click on any button tooltip appears always on first button,because it pick first button id as target. Please help me...