0
因此,我製作了一個asp:日曆,並且希望在回發後訪問下一頁加載時的新選定日期。如何從asp獲取新的選定日期:日曆
我使用的代碼是:
<asp:Calendar ID="calEndDate" runat="server"></asp:Calendar>
Request.Form[calEndDate.UniqueID]
,它總是返回null。我能夠檢索選定的日期,但這會給我以前選擇的日期,而不是新的日期。
懸停在「calEndDate」當我得到的消息是:
calEndDate = {SelectedDate = The name 'SelectedData' does not exist in the current context}
任何幫助,將不勝感激。
感謝
因此,從我能夠發現有一個與asp:日曆控件的問題。有些東西阻止您在回發中抓取detaihttp://connect.microsoft.com/VisualStudio/feedback/details/254459/the-name-selecteddata-does-not-exist-in-the-current-contextls。 – Crypic2009