ASP1 Flashcards

1
Q

What is viewstate and what problem does it solve?

A

Keeps track of what is rendered for view; allows us to track postbacks

HTTP is stateless

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a round trip in ASP.Net?

A

user requesting (http request) and server responding back to client (http response)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a postback in ASP.Net?

A

Re-processing a page…posting back the same page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What file is the C# code usually stored in for an ASP.Net page (for example, for the Default.aspx page, where would its corresponding C# code go?

A

default.aspx.cs

…this is the code-behind file for the aspx file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

C# comment

single-line

mutli-line

A

C# comment

single-line //

multi-line /* */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CSS comment

A

CSS comment

/* */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HTML comment

A

HTML comment

<!-- -->

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Javascript single-line and multi-line comment

A

SAME AS C#

single-line //

multi-line /* */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ASP comment

A

ASP comment

<%– –%>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is adaptive rendering? What is an example for asp:label?

A

rendering is turning ASP controls into HTML for display

for asp:label it renders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When creating a new aspx file, what do you chnage immedidately and where?

A

In <html...></html...>

<p>
lang="en"</p>

<p>
In head, add</p>

<p>
<meta></meta>
</p>

<p>
After head-title, drop in the css href file</p>

</html...>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What kind of button is best used for CSS formatting?

A

LinkButton

…which renders as a hyperlink but they perform a postback by default, instead of leading you off the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly