Академический Документы
Профессиональный Документы
Культура Документы
nowPostBack is set to true), so the text of the label is set toWhen the first
time the page is
loaded(isPostBack is set to false), the text pf the label is set to
*Change the method name Page_Load to Page_Start. What will display?
[]. Page_Load is the method to be executed before the page is loaded. It is
executed before the web form is loaded. Every time before the web form is
loaded, a few events are executed. These include Page_Load and the event
handlers for all the controls.
*Page.IsValid checks all validation controls are valid before performing tasks
UsrName = mycookie.Values[username];
Advantages/Disadvantages of using Cookies rather than server-side
management solutions
Advantages
Can store state information for long period of time(maybe even years)
without impacting
server performance
Simple technology which is widely supported by most Web browsers today
Disadvantages
Privacy & security issues Hackers can access the information if data is
not encrypted
Some browsers may not support cookies, or offer the user the option to
turn off cookies
Server Resource
Security
Bandwidth
Browser Support
Storage Capacity
Client Based
No server resources
required
Information stored
on client has higher
risk of being
tempered or
modified
Information passes
back and forth
between client and
server
Certain techniques
may face problems
due to incompatible
browser or user
performance
(e.g. cookie)
Usually limited
Server-based
Server resources
required
More secure as
information is stored
on the server and
not transmitted to
the client
No information is
passes back and
forth between client
and server. Less
traffic
No need to worry as
information are not
passed to clients
Almost unlimited if
stored in a database
{
lblErrMsg.Text = Unknown error.;
}
1.
1 points
Question 2
1.
1 points
Question 3
1.
ExecuteReader
ExecuteNonQuery
ExecuteScalar
ExecuteQuery
1 points
Question 4
1.
ExecuteReader
ExecuteNonQuery
ExecuteScalar
ExecuteQuery
1 points
Question 5
1.
ExecuteReader
ExecuteNonQuery
ExecuteScalar
ExecuteQuery
1 points
1.
Question 6
1 points
Question 7
1.
1 points
Question 8
1.
1 points
Question 9
1.
1 points
1.
Question 10
ExecuteScalar
ExecuteReader
ExecuteNonQuery