IZWebFileManager

Advanced ASP.NET File Manager
Welcome to IZWebFileManager Sign in | Join | Help
in Search
The forum is moved to http://groups.google.com/group/izwebfilemanager
If you have any question, please post there. Thanks!

Error on source code

Last post 06-09-2010, 6:53 PM by geocine. 2 replies.
Sort Posts: Previous Next
  •  06-09-2010, 8:21 AM 519

    Error on source code

    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);
                    }
                }

  •  06-09-2010, 1:10 PM 521 in reply to 519

    Re: Error on source code

    It is C# 3.0 auto property language feature.

    You have to use VS 2008

    It supports target .NET 2.0, but allows C# 3.0 features.


  •  06-09-2010, 6:53 PM 524 in reply to 521

    Re: Error on source code

    ohh okay, automatic properties and object initializers
View as RSS news feed in XML
www.IZWebFileManager.com
izwebfilemanager@gmail.com