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 parameter . Below is the statement that I used in my aspx page.
onblur="return ValidateText(this,'<%# Eval("vehicleId") %>')"
But this gives me parsing error The server tag is not well formed. How should I call this function in design only(not from code behind).
This works, but seems an HACK because I removed the enclosing quotes (anti-XHtml)
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