我寫一個新聞欄
按下標題會出現詳細內容
但 panel 會佔用了一個 <br> 位 , 有無方法令它不會顥示結果如下 :
17/8/2008 0:00:00 test
間了一行 , 因為使用 panel 關係
17/8/2008 0:00:00 test2[align=center].
.
.
.[/align] <asp:TemplateField>
<ItemTemplate>
<asp:Panel ID="panitem" runat="server" Width="603px">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 210px; height: 50px;">
<asp:Label ID="Label1" runat="server" Text='<%# Bind("news_date") %>' Width="205px"></asp:Label><br />
</td>
<td style="width: 432px; height: 50px;">
<asp:Panel ID="showlabel" runat="server" Width="100%">
<asp:Label ID="Label2" runat="server" Text='<%# Bind("news_subject") %>'></asp:Label></asp:Panel></td>
</tr>
</table>
<asp:Panel ID="Panel2" runat="server" Height="50px" Width="595px">
<asp:Label ID="Label3" runat="server" Text='<%# Bind("news_content") %>'></asp:Label>
</asp:Panel>
</asp:Panel>
<br />
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="Panel2" Collapsed="true" ExpandControlID="showlabel" CollapseControlID="showlabel">
</cc1:CollapsiblePanelExtender>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
按下標題會出現詳細內容
但 panel 會佔用了一個 <br> 位 , 有無方法令它不會顥示結果如下 :
17/8/2008 0:00:00 test
間了一行 , 因為使用 panel 關係
17/8/2008 0:00:00 test2[align=center].
.
.
.[/align] <asp:TemplateField>
<ItemTemplate>
<asp:Panel ID="panitem" runat="server" Width="603px">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 210px; height: 50px;">
<asp:Label ID="Label1" runat="server" Text='<%# Bind("news_date") %>' Width="205px"></asp:Label><br />
</td>
<td style="width: 432px; height: 50px;">
<asp:Panel ID="showlabel" runat="server" Width="100%">
<asp:Label ID="Label2" runat="server" Text='<%# Bind("news_subject") %>'></asp:Label></asp:Panel></td>
</tr>
</table>
<asp:Panel ID="Panel2" runat="server" Height="50px" Width="595px">
<asp:Label ID="Label3" runat="server" Text='<%# Bind("news_content") %>'></asp:Label>
</asp:Panel>
</asp:Panel>
<br />
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="Panel2" Collapsed="true" ExpandControlID="showlabel" CollapseControlID="showlabel">
</cc1:CollapsiblePanelExtender>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
我怎么看到的这个?