2011-07-02 48 views
0

我在我的網頁上進行設計。我有使用定時器控制在asp.net .the錯誤的發生 如何清除錯誤如何運行計時器如何清除錯誤計時器

我的代碼

public partial class _Default : System.Web.UI.Page 
    { 
    protected void Page_Load(object sender, EventArgs e) 
    { 

    } 
    } 

public interface IScheduledItem 

{ 

void AddEventsInInterval(DateTime Begin, 
     DateTime End, ArrayList List); 

    DateTime NextRunTime(DateTime time); 
} 

他鍵入或命名空間名稱的ArrayList「錯誤 不能發現

回答

0

將對System.Collections的引用添加到您的項目中,併爲System.Collections添加using語句。

+0

我有使用但定時器不顯示我應該使用任何條件 – Malliga

+0

你有什麼代碼/標記定時器? – Tim

+0

是的,我想運行timer.how來運行定時器 – Malliga

0

您需要引用正確的命名空間是這樣的:

using System.Collections.ArrayList;

將此添加到您的文件頂部。