R
Raymond Chiu
<asp:TextBox runat="server" Text='<%#
MyProject.Common.Utility.NumberFormatUtil.StrAmount(1111.11111)
%>'></asp:TextBox>
The textbox does not show the string and it is empty.
(1) I have tried to put the StrAmount function in the current aspx.cs and
make the debug break point. When run, it does not go to the function and
textbox still show empty. do you know why???
<asp:TextBox runat="server" Text='<%# StrAmount(1111.11111)
%>'></asp:TextBox>
(2) when i put <asp:TextBox runat="server" Text="11111"></asp:TextBox>, it
show 11111.
What happened???
How about the following of setting dataformatstring='<%# %>' ?? Can it
work if the above questions solved??
<asp:GridView ID="gridview1" runat="server"
AutoGenerateColumns="False" SkinID="ResultGridSkin"
Width="100%"
PageSize="100" onrowcommand="delete_Row">
<Columns>...................
<asp:BoundField DataField="Unit_Price"
DataformatString='<%# myproject.common.utility.getunitpriceformat()%>'
HeaderText="Unit Price" />
</Columns>
</asp:GridView>
MyProject.Common.Utility.NumberFormatUtil.StrAmount(1111.11111)
%>'></asp:TextBox>
The textbox does not show the string and it is empty.
(1) I have tried to put the StrAmount function in the current aspx.cs and
make the debug break point. When run, it does not go to the function and
textbox still show empty. do you know why???
<asp:TextBox runat="server" Text='<%# StrAmount(1111.11111)
%>'></asp:TextBox>
(2) when i put <asp:TextBox runat="server" Text="11111"></asp:TextBox>, it
show 11111.
What happened???
How about the following of setting dataformatstring='<%# %>' ?? Can it
work if the above questions solved??
<asp:GridView ID="gridview1" runat="server"
AutoGenerateColumns="False" SkinID="ResultGridSkin"
Width="100%"
PageSize="100" onrowcommand="delete_Row">
<Columns>...................
<asp:BoundField DataField="Unit_Price"
DataformatString='<%# myproject.common.utility.getunitpriceformat()%>'
HeaderText="Unit Price" />
</Columns>
</asp:GridView>