2011-07-01 35 views
0

當我運行它時它不會出現在屏幕上..但它確實出現在設計視圖中的visual studio 2010中。此外,我想設置的標籤從左至右從右至左:我有一個TabContainer控件的問題

  <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2" 
    Height="584px" Width="739px" AutoPostBack="True" BackColor="#666699" 
    BorderColor="#666699"> 
      <asp:TabPanel ID="Questions" runat="server" HeaderText="שאלות"> 

       <ContentTemplate> 

        <asp:GridView runat="server" Height="547px" 
         style="margin-left: 2px; margin-top: 15px" Width="667px"> 
        </asp:GridView> 

        </ContentTemplate> 
       </asp:TabPanel> 
       <asp:TabPanel ID="Answers" runat="server" HeaderText="תשובות"> 
       <ContentTemplate> 
        <asp:GridView ID="GridView1" runat="server" Height="547px" 
         style="margin-top: 17px" Width="666px"> 
        </asp:GridView> 
        </ContentTemplate> 
       </asp:TabPanel> 
       <asp:TabPanel ID="Responses" runat="server" HeaderText="תגובות"> 
       <ContentTemplate> 
        <asp:GridView ID="GridView2" runat="server" Height="547px" 
         style="margin-top: 21px" Width="666px"> 
        </asp:GridView> 
        </ContentTemplate> 
       </asp:TabPanel> 
    </asp:TabContainer> 
+0

爲什麼要爲頭創建絕對位置? –

+0

刪除DemoStyles並檢查。 – Saurabh

+0

demostyle是在頭...他們是兩個分開的部分。布賴恩..試圖移動它 – WithFlyingColors

回答

0

對於組選項卡從右到左添加下面的樣式到頁面:

.ajax__tab_header 
{ 
    text-align: right; 
} 

但對於解決知名度問題,它信息不夠。你是否在代碼隱藏方面使用可見性屬性?

0

甚至更​​好:

.ajax__tab_header 
{ 
    direction: rtl; 
} 

,將切換選項卡的順序了。 (用於RTL語言)

相關問題