I am using below code but it's only get first tooltip..
try
{
int p;
sq = new SQLDataAccessHelper();
SqlParameter[] param = new SqlParameter[1];
param[0] = new SqlParameter("@facilityid", SqlDbType.Int);
param[0].Value = DBNull.Value;
ds = new DataSet();
ds = sq.ExecuteDataSet("usp_FillFacility", param);
if ((ds != null) && (ds.Tables.Count != 0) && (ds.Tables[0].Rows.Count != 0))
{
for(p=0;p<=ds.Tables[0].Rows.Count;p++)
{
rblFacility.ToolTip = ds.Tables[0].Rows[p]["NoOfSeats"].ToString(); // bind tooltip
}
}
}
catch { }
finally { }
}
How to Bind RadioButton List with ToolTip in ASP.Net?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 10, 2013, 9:30 PM EDT
try this code:
try
{
int p;
sq = new SQLDataAccessHelper();
SqlParameter[] param = new SqlParameter[1];
param[0] = new SqlParameter("@facilityid", SqlDbType.Int);
param[0].Value = DBNull.Value;
ds = new DataSet();
ds = sq.ExecuteDataSet("usp_FillFacility", param);
if ((ds != null) && (ds.Tables.Count != 0) && (ds.Tables[0].Rows.Count != 0))
{
foreach( ListItem itm in rblFacility.Items)
{
itm.Attributes.Add( "title", "value: " + ds.Tables[0].Rows[p]["NoOfSeats"].ToString());
}
}
}
catch { }
finally { }
}