How to Bind RadioButton List with ToolTip in ASP.Net?
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 { }
}