Home
Flashcards
Preview
asp.net midterm
Home
Get App
Take Quiz
Create
Difference between html form's GET and POST method attributes and when to use each?
GET
: queries(not storing)
POST
: for storing
How does ASP.net engine knwo how to default to the Home controller's index method?
start->routeConfig file
What is the default .Net return type for the Home Controller's Index method?
ActionResult
What is the typical instance that ActionResult is known as?
a view
describe how the footer div works with it's css
it goes where in the margin that the wrap leaves
is the popup really a popup? explain
no. it's a layer using css
what is the z-index?
css property
layered
the higher the number the more priority that it will have
What does the # represent?
page fragment
(this is the specific spot i want to go in this page)
where is the closing x generated in the popup?
popup.css
.close
content:"X";
Describe the layout of the case study
3 projects
2 class libraries
1 website
how many tables are in eStoreDB?
4
How is the db is accessed at run time by the web site?
copy <connectionstring> from model project to the web site
what asp.net MVC template did we use to create the web project for case 1?
internet application
what syntax are standard HTML helpers prefixed with?
@Html.
difference between Ajax enabled form and a regular form?
Ajax enabled: don't have to send everything back to the server. You are just doing a call to the server
What is the purpose of the
UpdateTargetId
option on the Ajax form?
choose what part of the screen we want updated
What is the HTML helper Partial used for?
returns a partial view(not sending the whole thing back)
what syntax is used to expose a model to a view?
@model
What jquery syntax is required to load a JQuery tab control on a page
$(#name of element).tabs
What html construct is used to house a jquery tab?
line item
describe 2 client side validation techniques
1. javascript
2. jquery validator
3. html5
describe 2 server side validation techniques
1. logic
2. database constraints
what html helper is used with dataAnnotation to do server side validation
validation message
list 4 server side validation attributes
required
range
regex
compareAttribute
What .net class was used to populate the list for the drop downs?
selectListItem
How does the CreditCardType property get populated in the CustomerViewModel?
pass control to the linq query which sets the CCT
how many regex are used in the register process?
2
Where is the InitializeSimpleMembershipAtribute located by default?
filters folder
What parameters in the InitializeSimpleMembership method did we change to use our Customer table?
what table to use and the primary key
Where is the [InitializedSimpleMembership]?
on class in Home controller
creates membership tables if non-existent
what 2 tables were used when running the WebSecurity.CreateUserAndAccount
WebPages_membership
Customers
Where is the original ErrorCodeToString method?
AccountController
T/F customerModel's Register method does and insert?
True
False
false
does and UPDATE
How does the server distinguish one session from another?
SessionID from individual users
Which session state provider is used by default
InProcess
(could use StateServer or DB or your own)
Main advantage of a Session object
easy to store objects and keep them global
Main disadvantage of the Session Object
uses a lot of memory on the Server
Which file do you code the 2 event handlers used by Session objects?
global.asax
what 3 things where placed in the session object
customerid
status
message
what actionResult was returned upon successful login?
PartialView
What did the OnSuccess parameter call in the Ajax form login screen
javascript to make the popup go away
What 3 things occur when logout is pressed
membership logout method
.abandon method
redirect back to homepage
What params were passes to the websecurity's login method?
username
password
What does the session variable "Cart" actually contain?
array of cart items
what syntax do you use in a view to access a custom html helper?
@html.
same as regular helper
what 2 params do we send to a custom html helper method
html helper class
id(which is a string)
name of file u configure bundles with
Appstart->BundleConfig
2 main types of bundles
script files
css files
what class creates an unordered list in the catalogue helper?
tagBuilder
why use StringBuilder?
string concatenation is hard on the server
when catalogue is rendered, what kind of html control is the details button?
anchor or href
What does the browser retuen after pushing addToCart button
partialView
Author
djon
ID
228875
Card Set
asp.net midterm
Description
asp.net
Updated
2013-08-01T21:29:18Z
Show Answers
Home
Flashcards
Preview