Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
ASP NET Questionnaire

ASP NET Questionnaire

Ratings: (0)|Views: 7|Likes:
Published by api-3711790

More info:

Published by: api-3711790 on Oct 14, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

ASP.NET Questionnaire
Compiled byrsonidotnet@yahoo.com
Page 1 of 20
Number:
1
Heading:
State / Session management
Question:
Why a conventional ASP web page is considered to be stateless amd how do
u overcome this using ASP.NET?
Answer:

Whenver a URL request is made, Web server creates instance of requested
web form, generates HTML and posts it to browser for rendering. It then
destroys instance of web form on the server. When user submits data back to
the web server, a new instance of web form is created which has no
knowledge of earlier webform. Hence conventional web page is stateless. In
ASP.NET before web form get destroyed the state of the webform is stored in
Viewstate(hidden control) on the page and when the page is posted back, the
state of the webform is restored from view state.

Comments:
Level:
SE
Number:
2
Heading:
State / Session management
Question:
What is a web-farm and how do u manage session in web-farm?
Answer:

A web-farm is group of webservers hosting a single web application.
Sice the web application is shared across multiple servers, session info can
not be stored in process memory of any of servers. It should be stored in a
centralizes database or state machine.

Comments:
Level:
SSE
Number:
3
Heading:
State / Session management
Question:
How do you preserve persistent data, such as simple variables, in a Web
application?
Answer:
You can preserve data in state variables, such as ApplicationState,
SessionState, or ViewState.
Comments:
Level:
SE
Number:
4
Heading:
State / Session management
ASP.NET Questionnaire
Compiled byrsonidotnet@yahoo.com
Page 2 of 20
Question:
How cookieless session works in ASP.NET?
Answer:

In cookieless session session id gets embedded in URL automatically. So when url request is made, session id is stripped from URL by ASP.NET And is used to identify session information belonging to user.

Comments:
Level:
TL
Number:
5
Heading:
State / Session management
Question:
Does cookieless session works when absolute paths are specified ?
Answer:
No cookieless session does not work with absolute paths. It works only with
relative path.
Comments:
Level:
TL
Number:
6
Heading:
State / Session management
Question:
Is it possible to protect view state from tampering when it's passed over an
unencrypted channel?
Answer:

Yes. Simply include an@ Page directive with an
EnableViewStateMac="true" attribute in each ASPX file you wish to
protect, or include the following statement in Web.config: his
configuration directive appends a hash (officially called the message
authentication code, or MAC) to view state values round-tripped to
the client and enables ASP.NET to detect altered view state. If
ASP.NET determines that view state has been altered when a page
posts back to the server, it throws an exception.

The hash is generated by appending a secret key (the
validationKey value attached to the <machineKey> element in

Machine.config) to the view state and hashing the result. An attacker can't modify view state and fix up the hash without knowing the secret key, too.

Comments:
Level:
TL
ASP.NET Questionnaire
Compiled byrsonidotnet@yahoo.com
Page 3 of 20
Number:
7
Heading:
State / Session management
Question:
How do u synchronize access to Application variables by multiple threads.
Answer:
Use Application.Lock and Application.Unlock before accessing Application
Variables.
Comments:
Level:
SE
Number:
8
Heading:
State / Session management
Question:
How do u cache a web page in ASP.NET?
Answer:
<%@ outputcache duration=\u201d60\u201d varybyparam=\u201dnone\u201d>
Comments:
Level:
SE
Number:
9
Heading:
State / Session management
Question:

What is difference between following statements
1 - <%@ outputcache duration=\u201d60\u201d varybyparam=\u201dnone\u201d>
2 - <%@ outputcache duration=\u201d60\u201d varybyparam=\u201d*\u201d>
3 - <%@ outputcache duration=\u201d60\u201d varybyparam=\u201dname\u201d>

Answer:

Statement 1 caches only one version of the page irrespective of querystring
parameters. Statement 2 caches multiple versions of same page I any of
quewrystring parameter varies. Statement 3 caches multiple versions of the
page for different values of parameter xyz.

Comments:Related to 8
Level:
SE
Number:
10
Heading:
State / Session management
Question:
What is difference between canche.insert and cache.add method
Answer:

TheAdd andInsert methods have the same signature, but there are subtle differences between them. First, calling theAdd method returns an object that represents the cached item, while callingInsert does not. Second, their behavior is different if you call these methods and add an item to the cache

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->