• 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/47

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;

47 Cards in this Set

  • Front
  • Back
What are "roles"
A role is a named set of permissions. In other words, a role contains permissions. Roles can be granted to or
revoked from users; granting a role to a user has the same effect as granting the user all the permissions in
that role. Roles are important because they allow the administrator to manage user privileges in a much more
convenient way.
What is "hashing" used for?
Hashing is a common method for storing passwords. The hash value of a password is calculated by applying
a mathematical function (hash algorithm) to it. The essential property about the hash algorithm is that you
can’t obtain the original password from its hash value (the algorithm is one-way).
What are MD5, SHA-0, and SHA-1?
Popular hashing algorithms.
What does the Login control include?
It displays a login box asking for the username
and password and a check box for the “remember me next time” feature.
What is the LoginView?
Templates, e.g. "You are not logged in" before log in, or user-appropriate links if the user IS logged in.
What is the LoginName?
Displays the logged-in user's name.
What is LoginStatus?
Displays a Login link if the user is NOT logged is, or a Logout link if the user IS logged in.
How do you start the ASP.NET Web Site Administration
Tool
In VS: Web -> ASP.NET Configuration.
What is the default requirement for passwords for ASP.NET membership?
At least 7 letters, at least one of which must be non-alphanumeric, e.g. [ * ! etc.
Where is the ASP.NET password requirement determined?
In machine.config's AspNetSqlMemberShipProvider section.
Do you have to modify the machine.config to alter password requirements?
No, you can also modify the application's web.config.
How do you get a reference to a control on a web page, in your code behind?
Use <page>.FindControl( "<control_id>") and cast to the appropriate control type:

TextBox usernameTextBox = (TextBox)Login1.FindControl( "UserName" );
What is a placeholder control?
It's an ASP.NET control to which another control can easily be added dynamically, at run-time.
How can you use a GUI to manage your web.config application settings?
In VS: Website -> ASP.NET Configuration, then the Application tab, then the Manage Application Settings link.
What database is used to store your authentication data (by default)?
ASPNETDB.MDF
What is the AnonymousTemplate?
It's part of the LoginView control's template, determines what appears before the user logs in.
How do you expose the component controls of the Login control?
Click the Smarttag (upper-right corner) and select "Convert to Template"
What does * mean, as in

{deny users="*" }

?
* means "all identities" so all users would be denied.
What does ? mean, as in

{deny users="?" }
{allow users="*" }


?
? means "anonymous users", those who have not logged in... so the config would deny all those NOT logged in, allow all those who ARE logged in.
What is the default access to web pages, if you don't do anything to control it?
All visitors get access to all pages.
How do you execute a DB command that doesn't return any result set (delete / update / insert)?
command.ExecuteNonQuery(), where command is a DbCommand object.
How do you add columns to a GridView, using the UI
Click the SmartTag, then click Add New Column (repeating for each column)
What are the GridView's built-in types? (6)
BoundField, CheckBoxField, HyperLinkField,
ButtonField, CommandField, ImageField, and TemplateField.
What is a GridView BoundField?
Displays a column from the database.
Why are skins easy from the developer's perspective?
Default skins apply to all controls of that kind in a web site, so you have just one place to set those attributes.
When a control is skinned, how can you set its attributes to a different look?
If you to apply more than one skin to a given type of control, you need to create named skins and add a corresponding SkinID property to the control's definition.
How do you put a GridView row into edit mode?
In the grid_RowEditing event:

grid.EditIndex = e.NewEditIndex;

where e is the event argument passed to RowEditing.
How do you get out of edit mode, with a GridView?
In the RowCancelingEdit event, set the grid.EditIndex = -1.
How do you tell a GridView about a table's primary keys?
Set its DataKeyNames property.
How do you access a primary key associated with DataKeyNames?
string id =
grid.DataKeys[e.RowIndex].Value.ToString()
How do you read the value from a GridView cell?
Use zero-based addressing and cast to TextBox:

string name = ((TextBox)grid.Rows[e.RowIndex].Cells[0].Controls[0]).Text;
How can you get more control of how a GridView renders a column?
Convert it to a <b>template column</b>.

This is in contrast to using the built-in BoundField, HyperLinkField, etc.
How do you read a GridView value, using the column name?
Use FindControl():

string description = ((TextBox)grid.Rows[e.RowIndex].FindControl("descriptionTextBox")).Text;
How do you bind a control to a database column, in the mark-up?
Use
<%# Bind( "ColumnName") %>

How do you get the value of a query string parameter?
string departmentId =
Request.QueryString["DepartmentID"];
How do you redirect to a different page?
<b>Response.Redirect</b>

Response.Redirect( Request.ApplicationPath + "/CatalogAdmin.aspx" );
What is the difference between Eval() and Bind()?
Both return the value of their reference, but Eval() is one-way -- display only -- and Bind() is two-way -- display AND UPDATE.
What kind of object holds a parameter that you're passing to a stored procedure
DbParameter
Why use a DbType.AnsiString parameter instead of DbType.String, here?

param.DbType = DbType.AnsiString;
param.Size = 5000;
Because DbType.String
stores Unicode characters and only supports strings up to 4,000 characters.
How do you format data from an Eval() as currency?
Text='<%# String.Format("{0:0.00}", Eval("Price")) %>'>
What is a GUID?
A GUID (Globally Unique
Identifier) is a value guaranteed to be unique across time and space.
Why use GUIDs?
Two generated GUIDs will never be the same.
How long is a GUID?
The
string representation of a GUID has 36 characters: The GUID itself is 32 bytes long, and its string representation also
contains 4 separating dashes. An example of a GUID is ff8029a7-91e2-4ca2-b4e7-99a7588be751.
How do you pronounce "GUID"?
Some hold that it rhymes with "squid", others say "fluid". Does it matter? :)
When do you want to use Char the Char datatype, in SQL Server, as opposed to VarChar?
When you know the exact length of the strings you’re storing in a table field, it’s better to use the Char
data type instead of VarChar.
When do you want to use Char the Char datatype, in SQL Server, as opposed to VarChar?
When you know the exact length of the strings you’re storing in a table field, it’s better to use the Char
data type instead of VarChar.
What is a composite primary key?
One comprised of more than one column.