Why Is Container.dataitem Being Passed As A String Literal?
I'm trying to pass a string value to a javascript function from a LinkButton's OnClientClick event, but the function is receiving '<%# Container.DataItem %>' instead of the v
Solution 1:
OnClientClick="javascript:SaveQuotaGroupCode('<%# Eval("YourProperty") %>');"
Also, the collection should be transformed into a comma separated list of values as that is what the signature of the Javascript function expects...
Post a Comment for "Why Is Container.dataitem Being Passed As A String Literal?"