Hi have always trouble with calling JavaScript function with parameters values as values bonded to the gridview. I follow SO Thread But can not used for passing this
This works, but seems an HACK because I removed the enclosing quotes (anti-XHtml)
onblur=<%# String.Format("return ValidateText(this, '{0}')", Eval("VehicleID")) %>
The problem is having " "" "
or ' '' '
as part of the string.
This is better done (I wish it is easier in markup), in code-behind, e.g. RowDataBound or ItemDataBound
control.Attributes["onblur"] = String.Format("return ValidateText(this, '{0}')", rowValue);