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 に答える