c1-cms

Post form values, process with c# in Composite C1


This is probably easy to do but I've spent hours searching Composite C1 knowledge base and google but nothing.

I simply want to create an html form, then when the user submits it, be able to process the form fields in C#. I don't mind if this uses web forms, MVC or some other mechanism.

I have got inline functions working but it's not clear how to pass in the form fields.

thx.


Solution

  • The Form Submit Handler is a simple addon that accepts all the values posted to the page and saves it to files on the server.

    It can be a good starting point to see how to work with Forms withing C1. The code for it is available on GitHub.