Click here to Skip to main content
15,921,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if (LblMN.Text == "Incident")
{

if (LblURS.Text=="New")
{
int iStart = LnkMSid.Text.IndexOf("Incident is New");

GridView1.Rows[i].Cells[4].Attributes.Add(Style", background: url(../Images/flag_blue.gif) no-repeat;" + LnkMSid.Text.Substring(iStart + 1,LnkMSid.Text.Length-1));
}

From Above code i would like to ask . On mouseover in grid cell i want "Incident is new" to appear and the image should appear accordingly, but according my code nothing haapens. what should be the code then?
Posted
Comments
Faisalabadians 19-Sep-13 5:52am    
first decide, you want it to be done from server side or from client side?

Thank you all for your help I have solved it.

And below is the correct code.
On mousehover i am getting my desired result.


if (LblMN.Text == "Incident")
{

if (LblURS.Text=="New")
{
LnkMSid.ToolTip("Incident is New");

GridView1.Rows[i].Cells[4].Attributes.Add(Style", background: url(../Images/flag_blue.gif) no-repeat;");
}
 
Share this answer
 
C#
if (LblMN.Text == "Incident")
{

if (LblURS.Text=="New")
{
LnkMSid.ToolTip("Incident is New");

GridView1.Rows[i].Cells[4].Attributes.Add(Style", background: url(../Images/flag_blue.gif) no-repeat;");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900