Server side code

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Bahram
Posts: 9
Joined: Wed Apr 12, 2017 1:41 pm

Server side code

Postby Bahram » Tue May 30, 2017 1:32 am

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?

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Server side code

Postby JS-Support @Userware » Tue May 30, 2017 6:33 am

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

Fuzioncode
Posts: 12
Joined: Thu Sep 29, 2016 7:18 am

Re: Server side code

Postby Fuzioncode » Wed Jun 28, 2017 10:29 am

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?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests

 

 

cron