Naga Satya

Naga Satya

  • NA
  • 40
  • 1.5k

I'm trying to write tooltip on labels

Jun 28 2017 2:19 AM
I'm trying to write tooltip on labels..
My page contain many labels...so there related  tooltip is stored in database..
I'm bringing tooltip from DB.. for every label
By using any loop Can I get the tooltip from DB by not using all labels 
 
 
Private Function getToolTipFromDB() As DataTable
Dim dt As DataTable = AMSQL.DataTable("SELECT * FROM tooltip", "tooltip")
Label2.ToolTip = dt.Rows(0)(3).ToString()
Label3.ToolTip = dt.Rows(1)(3).ToString()
Label13.ToolTip = dt.Rows(2)(3).ToString()
Label26.ToolTip = dt.Rows(3)(3).ToString()
Label7.ToolTip = dt.Rows(4)(3).ToString()
Label16.ToolTip = dt.Rows(5)(3).ToString()
Return dt
End Function
 

Answers (2)