Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4018238
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:57:31+00:00 2026-05-20T09:57:31+00:00

I followed the HelloWorld module tutorial on Orchard’s website, but I didn’t really see

  • 0

I followed the HelloWorld module tutorial on Orchard’s website, but I didn’t really see any tutorials that spoke about creating interactive modules. Basically, I just wanted to create a module that contains a TextBox and a Button and when you click the button, it label will display either FizzBuzz, Fizz, or Buzz depending on if the number you entered into the textbox is divisible by 15,3, or 5 respectively, but I am unclear on how to do this. Can someone point me in the right direction. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:57:32+00:00Added an answer on May 20, 2026 at 9:57 am

    It is doable and I’ll try to help you out:)

    Orchard development is built around modules. Modules provide creatable content elements (pages, blogs, blog posts, widgets etc.) in the form of “content items” which contain a number of different “content parts” – the basic Orchard content building blocks.

    If you want to utilize Orchard content rendering framework (eg. want to put your FizzBuzz form in a reusable widget) – you should create a content part first and add the appropriate ajax form to it.
    How to do it is described very well in Orchard docs – here and here. I’ll encourage you to grab the Orchard Jumpstart module as it contains sample content parts (with documentation) for quick development. I also wrote an article about the basic concepts behind content part creation.

    The next step would be to place the FizzBuzz logic somewhere. Where? In the controller, as for any other ordinary ASP.NET MVC app, because Orchard modules are basically a tweaked, separated ASP.NET MVC applications (Areas) glued together by the Orchard Framework. So create the controller in /Controllers folder in your module, add the appropriate action, which will return FizzBuzz/Fizz/Buzz depending on the number posted.

    As a last step you have to point the ajax form to post to your controller action and retrieve the results.

    Summarizing:

    1. Create a FizzBuzz content part and widget which will contain your FizzBuzz content part.
    2. Create a controller and appropriate action taking number and returning a string content.
    3. Tell the ajax form in your part’s .cshtml Razor view file to post to your controller action (Ajax.BeginForm) and put the returned data in some existing <div>

    HTH!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed this tutorial on configuring the Rails plugin ExceptionNotifier. I know that I
I've followed this otherwise excellent tutorial on getting Xen working with Ubuntu but am
I've followed this example: RCP+JavaWS but the app just briefly comes up and goes
Need to an expression that returns only things with an I followed by either
Program followed by output. Someone please explain to me why 10,000,000 milliseconds from Jan
I followed the commonly-linked tip for reducing an application to the system tray :
Ok I followed the steps for setting up ruby and rails on my Vista
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
I have followed the blog post written by Steve Sanderson at blog.codeville.net/2008/10/14/partial-requests-in-aspnet-mvc . It
I have followed the suggestion in this question... [ How to handle checkboxes in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.