Create mvc- jquery mobile

Assignment Help Other Subject
Reference no: EM13760423

It should have a Home controller with the following two actions:

  •  Index, which has a return type of ActionResult and no parameters. In its body, it should add the current year to the ViewBag property under the name CurrentYear.

o Its associated view should then display the following text: The current year is: X Where X is the CurrentYear value retrieved from the ViewBag property.

  • AgeCalculator, which has a return type of ActionResult and an integer parameter called BirthYear. In its body, it should subtract BirthYear from the current year and assign the result to ViewBag property under the name Age.

o Its associated view should then display the following text: You are X years old! Where X is the Age value retrieved from the ViewBag property

Part 1- MVC

For this part, you are going to create an MVC Project called Assignment as follows:
In the Models folder, create a C# class called Team with the following two auto-implemented
properties:

  • TeamName with return type string.
  • TeamCity with return type of string. In the Controllers folder create a controller called HomeController with the following actions:
  • Index, which is decorated with the [HttpGet] attribute. In its body, it should create an object of type Team and pass it on to its associated view.
  • Index, which is decorated with the [HttpPost] attribute and takes a parameter of type
  • Team. In its body, it should construct the following message and display it in its associated view.

The team name is X and the team city is Y! Where X is the TeamName and Y is the TeamCity from the Team object received from the form in its associated view. In its associated view, the Razor syntax should be used to define a form that has a label for the team name and a text box for it as well as a label for the team city and a text box for it. It should also have an input of type submit which posts the values entered by the user to the Index action, decorated with the [HttpPost] attribute. The following block shows the skeleton for the Razor form in this view.

@using (Html.BeginForm())
{
<p>
Team Name inputs go here
</p>
<p>
Team City inputs go here
</p>
<p input of type submit goes here p>
}

This is very similar to the example presented in lecture 1 of this week. In brief, when the application is run, it shows the form containing the input fields where the user enters a team  Northeastern University, ITC 2811 - Advanced Application Development Assignment Page 2 of 2
name and a team city and clicks the submit input after which the page is refreshed to show the message specified earlier.

Part 2- jQuery Mobile
Answer the following questions in a Word document (or any other rich word processing program that allows you to create .doc documents), save it as Assignment10FN (where F is your first initial and L is your last initial).

1- How would you define a header for a jQuery Mobile page?
2- How would you define an area to hold the main contents of a jQuery Mobile page?
3- How would you define a footer for a jQuery Mobile page?
4- What meta tag would you use to specify the zoom and display dimensions of a jQuery
Mobile page?

Reference no: EM13760423

Questions Cloud

Write a paper on headland by christina gerogiannis : Write a paper on Headland by Christina Gerogiannis. I will be writing a literary explications, I do not need that written, just an interpretation of what this poem is describing, what the theme, tone, ect.
Applications of scientific mathods : The scientific method is useful in problem solving and decision-making in a wide variety of fields.
What is the current ratio : A company has current assets of $500,000, net income of $10,000, current liabilities of 250,000 and equity of $250,000. What is the current ratio?
What do you value most about your privacy : What do you value most about your privacy? Do you believe that famous people should just get over it and admit and assume that they do not have the right to privacy?
Create mvc- jquery mobile : Index, which has a return type of ActionResult and no parameters. In its body, it should add the current year to the ViewBag property under the name CurrentYear.
Compute the estimated inventory : Compute the estimated inventory at May 31, assuming that the gross profit is 25% of sales. Compute the estimated inventory at May 31, assuming that the gross profit is 25% of cost.
How view of human nature relates to each of religions : Consider how view of human nature relates to each of the religions covered and to your own social or work experiences.
Determine proper cash balance : Francis Equipment Co. closes its books regularly on December 31, but at the end of 2012 it held its cash book open so that a more favorable balance sheet could be prepared for credit purposes.
Display the properties that correspond to the search : Display the properties that correspond to the search made by the user on the search page. 10% for search functionality - 10% for the displaying the results in an effective and pleasant way

Reviews

Write a Review

Other Subject Questions & Answers

  Fundamentals of memory bias

Write down those three processes, and what factors can bias them?

  Liquidity of stocks in all ten portfolios

The results in the table show that the liquidity of stocks in all ten portfolios increases when either institutional sentiment or individual sentiment is higher. The coefficients on sentiment from the ten portfolio regressions are all significantly n..

  What is managed care and main objectives of public health

What is managed care? What effect has it had on healthcare costs? What are the main objectives of public health?

  Untie our hands

The quote "Untie our hands, give us independence and we would beg to be back under discipline" is from the famous Grand Inquisitor section of Dostoyevsky's The Brother's Karamazov. What does this say about the role of reason?

  Explain two types of sexual harassment

Explain two types of Sexual Harassment, what responsibility an employer has with regard to Sexual Harassment by its employees, and how it can protect against claims.

  How children react to a serious stressor depends primarily

compared to children from middle-class families, a characteristic of children from low-SES families is that their.

  Brainstorming and thesis

Brainstorm about specific positive and negative effects computers have had on your personal, professional, and academic life. Create a one-page list of your ideas.

  Specific communication disorders

Compare and contrast the 4 specific communication disorders in the DSM-IV in terms of the type of difficulties that the child may have and the general course/outcome for individuals with these specific disorders?

  How will you overcome obstacles

Create an accountability plan for meeting each of your goals. How will you overcome obstacles. Predict success in achieving your goals based on your past positive experiences.

  Evaluate a program-studied in a needs assessment

Which of the following is NOT a type of need studied in a needs assessment? Which of the following conditions is a valid reason NOT to evaluate a program?

  Ultimate standard of psychological health

Do you agree or disagree with Adler’s belief that social interest is inherent in people and the ultimate standard of psychological health? Why

  Why do you think windows is so prevalent

Why do you think Windows is so prevalent? What do the other systems have to offer that Windows does not? Who uses the other systems?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd