Page 1 of 1

Server side code

Posted: Tue May 30, 2017 1:32 am
by Bahram
Hi.
My question is how to write codes that belong to server side?(database etc...).
can we use this in a MVC project ? if yes ,how?

Re: Server side code

Posted: Tue May 30, 2017 6:33 am
by JS-Support @Userware
Hi,

The files generated by CSHTML5 are plain client-side HTML/JS files that can be uploaded to any server. If you want you can put them in a ASP/MVC project, but you don't need to. For server-side code, the recommended approach is the same as with a Silverlight application, that is, create a web service (the project type in Visual Studio is "WCF Service Application". Then, you can call this web service from the CSHTML5 application via SOAP (using the "Add Service Reference" button in Visual Studio) or REST (using the WebClient class).

For more information and tutorials, please visit:
http://cshtml5.com/links/wcf-limitations-and-tutorials.aspx

If you have other questions, please feel free to ask.

Thanks.
Regards,
JS-Support

Re: Server side code

Posted: Wed Jun 28, 2017 10:29 am
by Fuzioncode
I'm publishing my server-side code to a Linux OS. Do you have a CSHTML5 REST example connecting to a MySQL database example that can run on a standard Linux Host, such as server-side RESTful code written in Go, PHP, Python, Ruby, Perl, etc?