hi
i got the following error when i was working with a datagrid
i tried to bind a value to a text box in datagrid
But this gives an error (The server tag is not well formed)
untill i change quotesion mark of
double quotes
to
single quotes
is it the correct way or am i missing any configuration or something
i'm new to asp.net
thank you
Chathura Bamunusinghe
i got the following error when i was working with a datagrid
i tried to bind a value to a text box in datagrid
Code:
<asp:TemplateColumn HeaderText="PRICE" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:TextBox ID="txtPrice" CssClass="textbox" Width="100" Style="text-align:right" Text="<%# DataBinder.Eval(Container, DataItem.Email") %>" runat="server /> </ItemTemplate> </asp:TemplateColumn>
untill i change quotesion mark of
Code:
Text="<%# DataBinder.Eval(Container, DataItem.Email") %>"
to
Code:
Text='<%# DataBinder.Eval(Container, DataItem.Email") %>
is it the correct way or am i missing any configuration or something
i'm new to asp.net
thank you
Chathura Bamunusinghe
Comment