Hello all, so I have a GridView like this:
<asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" GridLines="None"
OnRowCommand="gv_RowCommand" OnRowDeleting="gv_RowDeleting" Width="100%"
OnPreRender="gv_PreRender">
<Columns>
...
<asp:TemplateField HeaderText="Temperatura">
<ItemTemplate>
<asp:TextBox MaxLength="10" ID="gvtxtTemp" runat="server" Text='<%# Eval("Registro3", "{0} °F")%>' />
</ItemTemplate>
<ControlStyle Width="100%" BackColor="Transparent" BorderStyle="None" />
</asp:TemplateField>
...
</Columns>
</asp:GridView>
So let's say that the value to bind is the number "10", so I would expect the output to be something like "10 °F" but instead I'm getting "10 °F °F". Why? am I doing something wrong?
I also tried doing it in the codebehind but the result was the same.
Update: Now I changed the format string to "a {0} °F" and I'm getting "a a 10 ° °F", now what's that suppose to mean?