You may create a
DIV
dynamically & add your content to that & then you can show that in UI on
mouseover
.
Dynamically Create a DIV tag using Server-Side code or JavaScript[
^]
DIV Popup for the OnmouseOver Event[
^]
EDIT
-------------------------------
Consider you have received data in
DataTable
from database.
So Now your
DataTable
(dtEmployee) has 1 row based on given EmpCode
if (dtEmployee.Rows.Count > 0)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("Employee Name : <b>" + dtEmployee.Rows[0]["EmployeeName"].ToString() + "</b>");
sb.AppendLine("DOB : <b>" + dtEmployee.Rows[0]["DOB"].ToString() + "</b>");
sb.AppendLine("Phone : <b>" + dtEmployee.Rows[0]["Phone"].ToString() + "</b>");
Div1.InnerHtml = sb.ToString();
}
Change the coding based on your requirement.