2012-10-10 24 views
0

幾天前,我在這個Web應用程序上得到了我的雙手,並且我已經遇到了問題。UpdatePanel在默認加載時不會出現,但它在給出特定頁面時會出現

當我加載頁面,比如說HL1 = http://localhost:8001/時,UpdatePanel根本沒有出現。

雖然當我加載頁面HL2 = http://localhost:8001/Default.aspx,它顯示在它的全部榮耀。

[編輯:添加HL1,HL2標籤]

僅供參考,UpdatePanel的是母版頁的一部分。

有什麼建議嗎?

感謝, 阿比納夫

[編輯:代碼更新面板]

<asp:UpdatePanel ID="upan" runat="server" > 
    <ContentTemplate> 
     <fieldset style="width:320px; padding:2px;margin-top:20px;margin-bottom:5px;" onmouseover="showHelp('quickAccess')" onmouseout="g_Popup.hide()"> 
      <legend>Quick Access</legend> 
      <span style="vertical-align: middle">Dummy # 
      <asp:TextBox ID="txtSearchDummy" clientidmode="Static" runat="server" MaxLength="9" Width="70px" Height="15px" style="margin-top: 5px"></asp:TextBox> 
      <asp:Button ID = "btnSearchDummy" clientidmode="Static" runat="server" OnClick="btnSearchDummy_Click" style="display:none"/> 
      <button onclick="return quickAccess()" lang="javascript" type="submit" class="button_enabled" style="margin-left: 5px;"> 
      <img alt="" src="images/lightning.gif"></img><span>Find Dummy</span></button></span> 
     </fieldset> 
    </ContentTemplate> 
</asp:UpdatePanel> 
+0

是Default.aspx,在您的項目屬性中聲明的默認頁面? – Praveen

+0

並且(主)頁面的其餘部分是否出現?你需要提供更多的細節。 –

+0

只需要補充一點,我是一個Windows應用程序開發人員,這個Web應用程序只是暫時的。 @Praveen不,它不是默認頁面,我只是將它作爲默認頁面,但錯誤仍然存​​在。 – Abhinav

回答

0

感謝所有幫助球員。問題現在已經解決了,並且和預期的一樣,它與ASP.NET毫無關係。在文件後面的母版頁代碼中,搜索框被隱藏起來。

:)

相關問題