Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
271 Points
528 Posts
Apr 30, 2012 06:37 AM|LINK
Thank you for reply!
from onrowdatabound event
here is
protected void gvHrEmploye_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int diaidi = Convert.ToInt32(gvAll.DataKeys[e.Row.RowIndex].Value); int rowindx = e.Row.RowIndex + 1; e.Row.Attributes.Add("onmouseover", "tooltip.BeginShowToolTip(event," + diaidi + "), onGridViewRowSelected('" + rowindx.ToString() + "'), clearTimeout(rowHighLightTimeOut)"); e.Row.Attributes.Add("onmouseout", "tooltip.Hide(), rowHighLightTimeOut = setTimeout(function () { curSelRow.style.backgroundColor = '#ffffff' }, 1000);"); } }
omerdemir
Member
271 Points
528 Posts
Re: JavaScript Function Dont Work After PostBack!
Apr 30, 2012 06:37 AM|LINK
Thank you for reply!
from onrowdatabound event
here is
protected void gvHrEmploye_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int diaidi = Convert.ToInt32(gvAll.DataKeys[e.Row.RowIndex].Value); int rowindx = e.Row.RowIndex + 1; e.Row.Attributes.Add("onmouseover", "tooltip.BeginShowToolTip(event," + diaidi + "), onGridViewRowSelected('" + rowindx.ToString() + "'), clearTimeout(rowHighLightTimeOut)"); e.Row.Attributes.Add("onmouseout", "tooltip.Hide(), rowHighLightTimeOut = setTimeout(function () { curSelRow.style.backgroundColor = '#ffffff' }, 1000);"); } }