1
一直試圖解決這個問題幾個小時,我知道問題是'#'但我找不到解決這個問題的任何解決方案。我在數據庫中的字段名稱是'HRTRN#'。aspx用'#'符號綁定數據到gridview
<asp:TemplateField HeaderText="Transaction#">
<EditItemTemplate>
<asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("HRTRN#") %>' Width="50px" Height="17px" MaxLength="14"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Bind("HRTRN#") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
有沒有人知道這個解決方案,使字段名稱包含#符號可訪問?
@RoyiNamir非常感謝,它解決了這個問題。 – Chris 2015-02-09 08:59:32