ASP1 Flashcards
What is viewstate and what problem does it solve?
Keeps track of what is rendered for view; allows us to track postbacks
HTTP is stateless
What is a round trip in ASP.Net?
user requesting (http request) and server responding back to client (http response)
What is a postback in ASP.Net?
Re-processing a page…posting back the same page
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?
default.aspx.cs
…this is the code-behind file for the aspx file
C# comment
single-line
mutli-line
C# comment
single-line //
multi-line /* */
CSS comment
CSS comment
/* */
HTML comment
HTML comment
<!-- -->
Javascript single-line and multi-line comment
SAME AS C#
single-line //
multi-line /* */
ASP comment
ASP comment
<%– –%>
What is adaptive rendering? What is an example for asp:label?
rendering is turning ASP controls into HTML for display
for asp:label it renders
When creating a new aspx file, what do you chnage immedidately and where?
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...>
What kind of button is best used for CSS formatting?
LinkButton
…which renders as a hyperlink but they perform a postback by default, instead of leading you off the page