As I just tested, Request.Post is only filled when the request's Content-Type is a correct form content MIME type. What you need to do for this to happen is add an enctype attribute to your form:

1
2
3
4
5
6
7
8
Form [
    usernameInput-< [Name "username" ]
    Input [Value "Request"] -< [Type "submit" ]
] -< [
    Attr.Action (ctx.Link <MyActionName> )
    Method "POST"
    EncType "application/x-www-form-urlencoded" // or "multipart/form-data" if your form contains file inputs
]
By on 4/9/2015 1:58 AM ()

Thanks - however only the latter works for me (multipart/form-data). When using the first one, there's no effect. To make it clear: I'm using the mose recent available NuGet package (3.0.46.130-rc1).

By on 4/9/2015 5:14 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper