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 8542629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:06:50+00:00 2026-06-11T12:06:50+00:00

Using mvc-4 basic template I am creating a view with button a HTML button.

  • 0

Using mvc-4 basic template I am creating a view with button a HTML button. Which upon being clicked will display. How many times this button has been clicked.

Created Model

ButtonTest.cs

namespace testmvc4basic.Models
{
    public class ButtonTest
    {
        public int clickCount { get; set; }
    }
}

Created View
Strongly typed View

@model testmvc4basic.Models.ButtonTest

@{
    ViewBag.Title = "ButtonTest";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

ButtonTest


While Attempting to create Controller, with the dialog
enter image description here

I get unsupported context type. What Am I missing, please ?

  • 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-06-11T12:06:52+00:00Added an answer on June 11, 2026 at 12:06 pm
    1. If you have created Database Context, and needed context not appear in list in add controller dialog – try to build solution, and try to add controller again, your model class should appear.
    2. If you don’t have Database context, and you still want to add controller using same template you need to create Database context class inherited from DbContext or Object context.
    3. Or if you don’t want to use context you should choose another template without specifying any context
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am in the process of learning MVC 3 using the basic project template
When using MVC, which controller should Terms of Service, Privacy, Help, About actions belong
I am using MVC C# along with Jquery. I have a partial view in
So i got the grip on the basic MVC patterns in java using Observer
I have developed a website using Asp.Net MVC which uses a SQL CE database
I'm looking at a tutorial for asp.net mvc here on the asp site: http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-basic-crud-functionality-with-the-entity-framework-in-asp-net-mvc-application
I have a basic MVC view model with annotations, for example: [Required(ErrorMessage=Your Name Required)]
I'm new to Spring MVC framework, having some trouble with basic URL mapping using
I've created a basic MVC 3 website that's using Windows Azure's Access Control Service
Html form is controlled using Knockout JS and jQuery templates. Basic jQuery validation is

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.