• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/65

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

65 Cards in this Set

  • Front
  • Back

The 3 'Flavours' of Asp

1. Webforms


2. Web API


3. MVC



The ASP infastructure

Helps provide basic functionality for web applications. Things like user accounts

The type of database integration style we used.

Code First.

The main table of our database.

The users tables.

The type of ID we have for our table Id.

GUID

GUID

128 bit Unique identifier

IUser

The interface that handles user accounts from the identity framework.

Usermanager parameters

Application user and DBContext

Persists transactions

"Complete"

Reverts transactions

"Dispose"

GET

GET requests can be cached


GET requests remain in the browser history


GET requests can be bookmarked


GET requests should never be used when dealing with sensitive data


GET requests have length restrictions


GET requests should be used only to retrieve data




Are sent through the browsers URL

POST

POST requests are never cached


POST requests do not remain in the browser history


POST requests cannot be bookmarked


POST requests have no restrictions on data length




Sent in HTTP request message body

ActionResult return type

Could be multiple things, views, partial views, strings. If it is not specified, a view matching the name of the function will be returned.

ViewBag

Base on ViewData class, can throw anything in it.

Type of syntax used by cshtml

Razor

cshtml

"C Sharp Html"

[ValidateAntiForgery]

Validates token generated in the shared view when function is run.

OWIN Startup Class

Needed to satisfy iss express server

the software (including versions) for thecourse

Visual studio 2013 update 4 .net framework 4.5.1,sql server 2014, azure, jquery

The .net "flavours" that we use

Web api, MVC

The web api provides this

REST call functionality

An Api providedby Microsoft to allow for login/registration management

Identity 2.1.1

the class that was provided to extend the defaultidentity class, allowing for customized user interface

ApplicationUser

The utility used to populate our code-first database with the identity tables

The migrations command in the package manager console

The name of the database strategy used in our project

Code first

The type of project added to the solution to exercise the identity tables

Unit Test Project

what we tested for in our test to confirm a new user was created

A valid GUID

An attribute places on an anchor to cause a modal to appear

Toggle

An attribute placed on an anchor to destroy the modal

Dismiss

Bootstrap component that provides a multi-pane container

Tab

LoadingElementID

Element that may hold anything that you want displayed during the AJAX execution

UpdateTargetID

The target element in which to update upon finishing the AJAX call

OnSuccess

A javascript function to execute upon succesful completion

OnComplete

A javascript function that is called upon completion, but before the page is updated. (Our add to cart button)

Javascript library added to allow ajax execution

Jquery.Unobtrusive

Added to the model properties for data validation

Data annotations ex. [Required]

The amount of types of validation any given property can have

Unlimited

Javascript library added to allow basic validation

jQuery Validation

Javascript library added to allow the validation to actually process

jQuery.Unobtrusive.Validation

The four main validation data annotations used on our model properties

[Required], [RegularExpression], [Range], [CompareAttribute]

The .NET class contained in the list used to populate the select control on our forms

SelectListItem

HTML Helper used to set up the select control

HTML.DropDownFor

What is used to distinguish one session from another

120 Bit Session ID. It is the only thing communicated between the client and server to determine the user.

The default session state

InProce

The four main session states/Modes

InProc, StateServer, SQL Server, Custom Session

The main advantage to using a session object

Easier to use, lets you maintain state between pages

The main disadvantage to using a session object

You lose data if the server is restarted

The file in which the two session event handlers reside

Global.asax.cs

3 items places in our session object as a result of a successful login

The user ID, the login status, a welcome message

The 2 identity infrastructure methods called in the userservice to facilitate the login sequence

SignInAsync and FindByNameAsync

The identity infrastructure methods that are called when a used logs out

SignOut, RedirectToAction

Functions in our app that are async

Login, Register, Shop Index, GenOrder

Method that is called to destroy the session variable upon logging out

Session.Abandon

Data type of the product code in the product table

NVCHAR(15) - To accommodate realistic unique product codes

Goal of the repository pattern

Allows your code to use objects without knowledge of how the data will be persisted

The two objects that must be provided to create our BaseService class

An abstract class representing an entity, such as a Product, and an instantiated database context such as appDBContext

Instantiated in the constructor of the productModel from the website project

The ProductService

Contained in the session variable cart

An array of CartItemDTO instances with each instance representing a product

What we must do with the session variable before we can use it in a method like addToCart

We must cast it to a CartItemDTO array ex (CartItemDTO[])Session["Cart"]

The two data types that are passed to the custom html helper method "catalogue"

An intrinsic html helper object and the id of the html element in which to insert the generated output

Created by the TagBuilder class in the catalogue helper class

An unordered list tag object

Why we used the StringBuilder class to dynamically create HTMLmarkup instead of string concatination

It is less memory intensive

The class returned from an html helper

Undencoded htmlString class

how we kept track of which product the user selected from the store

A data attribute embeded in the details button containing the product id

How the product details were copied from the shop page to the store

By the use of jQuery