Create a simple interactive FizzBuzz module for Orchard CMS?

I followed the HelloWorld module tutorial on the Orchard website, but in fact I have not seen any tutorials that talked about creating interactive modules. Basically, I just wanted to create a module containing a TextBox and a button, and when you click the button, FizzBuzz, Fizz or Buzz will be displayed on it, depending on whether the number you entered in the text box is divided by 15.3, or 5, respectively, but I do not understand how to do this. Can someone point me in the right direction. Thanks

+3
source share
1 answer

This is doable, and I will try to help you :)

Orchard . (, , , ..) " ", " " - Orchard.

Orchard (, FizzBuzz ) - ajax. Orchard - . Orchard Jumpstart, ( ) . .

FizzBuzz. ? , ASP.NET MVC, Orchard - , ASP.NET MVC (), Orchard Framework. /Controllers , , FizzBuzz/Fizz/Buzz .

ajax .

:

  • FizzBuzz, FizzBuzz.
  • .
  • ajax .cshtml Razor (Ajax.BeginForm) <div>

!

+5

Source: https://habr.com/ru/post/1796396/


All Articles