Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Conversion from string "tooltip.BeginShowToolTip(event," to type 'Double' is not valid.

error is pointing in line 3.  

Dim hl As HyperLink = TryCast(e.Row.Cells(0).Controls(0), HyperLink)
            Dim option_num As Integer = Convert.ToInt32(GridView1.DataKeys(e.Row.RowIndex).Value)
            hl.Attributes.Add("onmouseover", "tooltip.BeginShowToolTip(event," + option_num + ")")
            hl.Attributes.Add("onmouseout", "tooltip.HideToolTip()")
0
gianitoo
Asked:
gianitoo
1 Solution
 
TechTiger007Commented:
Try
hl.Attributes.Add("onmouseover", "tooltip.BeginShowToolTip(event," + option_num.ToString() + ")")
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now