I suspect the question is about how to get a dictionary value. In F# indexed properties can't be called the same way as in C#. The Item[]
member has to be called explicitly:
this.Request.Files.["FileUpload1"].ContentLength
and you could write something like:
member this.ImportExcel() =
if this.Request.Files.["FileUpload1"].ContentLength > 0 then
...