Hi
I want to have a custom template on a button within a datalist. Unfortunately when I try to reference the datalist template data from within the button template I get this error:
The name 'data' does not exist in the current context
This works fine using a datagrid. If I add a button to a datagrid columns template I can access the template data from within the button Template.
So:
datagrid -> Column -> Template -> Button Template -> ${data.FieldName} Works fine.
datalist -> Template -> Button Template -> ${data.FieldName} Doesn't work (Error)
By the way you can access the ${data.FieldName} from the datalist template fine just not from the buttons template.