Use
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "OrderID") %>'
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Harlan Messinger" <> wrote in message
news:...
> In VS2003, inside of a template column, I put a LinkButton with the
> following attribute:
>
> CommandArgument="<%# DataBinder.Eval(Container.DataItem, "OrderID") %>"
>
> ASP.NET produced the following error message in the browser:
>
> Parser Error Message: The server tag is not well formed.
>
> If I put a public variable in my page:
>
> public string Hello = "OrderID";
>
> and change the attribute to:
>
> CommandArgument="<%# DataBinder.Eval(Container.DataItem, Hello) %>"
>
> then all is well.
>
> What are the details of ASPX processing that result in these double quotes
> causing a parsing error?
|