PWNettle
Well-known member
Hmm, I thought I deleted this...
Im having a problem with some attributes/events placed inside controls in a repeater.
For example, Im trying to place a RequiredFieldValidator where I want to set the error message including the DataItem like this:
errormessage=<%# DataBinder.Eval(Container, "DataItem.Name")%> is a Required Field! runat="server">
What happens is that the single quotes get converted to double quotes, and the double quotes surrounding DataItem.Name get converted to HTML quote codes (& q u o t ; - without the spaces - cant seem to find codes to display code without HTML interpretation on this forum!).
It appears that ASPX is converting my tags in a way thats messing them up _before_ it processes the DataBinder.Eval...
Im using C# for my code behind, but not sure if that matters.
Anyone have any ideas?
Paul
Im having a problem with some attributes/events placed inside controls in a repeater.
For example, Im trying to place a RequiredFieldValidator where I want to set the error message including the DataItem like this:
errormessage=<%# DataBinder.Eval(Container, "DataItem.Name")%> is a Required Field! runat="server">
What happens is that the single quotes get converted to double quotes, and the double quotes surrounding DataItem.Name get converted to HTML quote codes (& q u o t ; - without the spaces - cant seem to find codes to display code without HTML interpretation on this forum!).
It appears that ASPX is converting my tags in a way thats messing them up _before_ it processes the DataBinder.Eval...
Im using C# for my code behind, but not sure if that matters.
Anyone have any ideas?
Paul
Last edited by a moderator: