0

我使用以下方法在 asp gridview 中创建标签。如果我这样使用,文本将出现在该标签中,但IE文本将出现在? 如何解决这个问题?ChromeFireFoxgrid-view

<asp:TemplateField HeaderText="text" itemstyle-width="100px" >                                              
      <ItemTemplate>
          <asp:Label ID="lbl" runat="server"  Text='There is no null-terminating character at the end of a C# string; therefore a C# string can contain ... of s1 and s2 are concatenated to form a single string, the two original strings are unmodified. ... For more information about how to create new strings that are based on modifications ... string quote Regex pattern strings are also interpreted at runtime, like string.Format(...). The Regex syntax contains instructions that are introduced by \. E.g. \d stands for a single character from the set 0...9. I dnt go into the Regex syntax in this tip, but rather how to conveniently put such a Regex pattern into a C# string.'></asp:Label>
      </ItemTemplate>
</asp:TemplateField>    
4

1 回答 1

0

将 itemstyle-width="100px" 更改为 style="width: 100px;"

于 2012-11-01T12:36:50.933 回答