Hello,
We are using RadToolTipManager to load control on demand with RadGrid.
In ItemDataBound event when we are adding TargetControl with value having single quote in it, it gives javascript error and no tooltip is opened.
When I google out I found that we can replace single quote (') with \'.
By doing so I didn't get javascript error but when i click to get Tooltip I got ajax error
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
We are using RadToolTipManager to load control on demand with RadGrid.
In ItemDataBound event when we are adding TargetControl with value having single quote in it, it gives javascript error and no tooltip is opened.
When I google out I found that we can replace single quote (') with \'.
for instance in ItemDatabaound event
this.RTTGroupDetails.TargetControls.Add(nameLink.ClientID, dataValue.ToString().Replace("'",@"\'").ToString(), true);
By doing so I didn't get javascript error but when i click to get Tooltip I got ajax error
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Kindly help me out to handle special character like single quote.
Regards,
Chanda.