I am adding an onclick event from code behind file to a hyperlink control. I am trying to call a javascript function ViewInModal from this onclick event. I am picking up a value from a grid view and passing it to the javascript function. But the function is not getting triggered.
I am using the following line of code.
hypLink1.Attributes.Add("onclick", "ViewInModal("+ DataBinder.Eval(e.Row.DataItem, "ViewSome").ToString()+")");
Is there anything wrong in this line? Please help guys