Hi why do I get an error here. I am opening it at visual studio 2005
Error 9 'IZ.WebFileManager.DownloadFileCancelEventArgs.DownloadFile.get' must declare a body because it is not marked abstract or extern HandlersAndEventArgs.cs 260 51
Here is the code
public class DownloadFileCancelEventArgs : CancelEventArgs
{
public FileManagerItemInfo DownloadFile { get; internal set; }
}
and errors like this
Error 6 Invalid expression term ',' FileManager.cs 702 33
Here is the code
if (_cusomToolbarButtonCollection != null) {
for (int i = 0; i < _cusomToolbarButtonCollection.Count; i++) {
CustomToolbarButton button = _cusomToolbarButtonCollection [i];
string postBackStatement = null;
if (button.PerformPostBack) {
postBackStatement = Page.ClientScript.GetPostBackEventReference (this, "Toolbar:" + i);
}
MenuItem item = new MenuItem ()
{
Text = button.Text,
ImageUrl = button.ImageUrl,
NavigateUrl = "BLOCKED SCRIPT" + button.OnClientClick + ";" + postBackStatement + ";return false;"
};
_toolBar.Items.Add (item);
}
}