Top 15 ASP.Net Interview Questions and Answers - PowerPoint PPT Presentation

About This Presentation
Title:

Top 15 ASP.Net Interview Questions and Answers

Description:

CRB Tech reviews compiles some important interview questions keeping your interest in concern. Hope this helps you in cracking your interviews. – PowerPoint PPT presentation

Number of Views:90

less

Transcript and Presenter's Notes

Title: Top 15 ASP.Net Interview Questions and Answers


1
Top 15 ASP.Net Interview Questions and Answers
2
CRB Tech reviews compiles some important
interview questions keeping your interest in
concern. Hope this helps you in cracking your
interviews. ASP.NET is the new ASP generation. It
is does not fit with Classic ASP
ASP.NET pages have the .aspx extension
When a browser requests an ASP.NET file, the
ASP.NET engine reads the file, compiles and
executes the words in the file, and returns the
result to the browser as plain HTML.
ASP.NET is a development frame for building web
pages and web sites with HTML, CSS, JavaScript
and server scripting.
3
1. What is ASP? Active Server Pages is a
Microsofts server-side technology, which helps
in developing dynamic and user-friendly Web
pages. 2. Define ASP.Net. It is a development fra
mework for building web pages and web sites with
HTML, CSS, JavaScript and server scripting.
4
3. ASP.net advantages? ASP.Net advantage over ASP
Compiled Code Language Support Strict Coding nee
ds Event-Driven Programming Model 3rd Party Contro
ls User Authentication Easier Configuration Depl
oyment Object and Page Caching Higher Scalability
5
4. How to maintain session in ASP.NET? In-process
storage. Session State Service. Microsoft SQL Serv
er. In-Process Storage The default location is the
ASP.NET process itself. Session State Service
It is an alternative to using in-process storage
for session state. ASP.NET provides the ASP.NET
State Service. The State Service gives you an
alternative for storing session state that is not
tied quite so closely to ASP. Nets own
process. Microsoft SQL Server It is the final choi
ce for storing state information.
6
5. What is the difference between Server.Transfer
and Response.Redirect? Server.Transfer() The
client sees it as on the requesting page , but
all the content is of the requested
page. Response.Dedirect() Here the client know
the physical location (page name and query string
as well). 6. Types of comments in asp.net Single
line comments // for single line
comments Multiple line comments / for multi line
comments / XML tags comments /// XML tags
depicted in a code comment
7
7. Use of _at_RenderPage() method _at_RenderPage()
method is used to bring content from separate
files. Example lthtmlgt ltbodygt _at_RenderPage(header.
cshtml) lth1gtHello Web Pageslt/h1gt ltpgtThis is a par
agraphlt/pgt _at_RenderPage(footer.cshtml) lt/bodygt lt/
htmlgt
8
8.What is the folder structure of ASP.NET Web
Pages Logical Folder Structure Below is a basic fo
lder structure for an ASP.NET web page Folders
The Account folder has log on and security
files The App_Data folder has databases and data
files The Images folder has images The Scripts
folder has browser scripts The Shared folder h
as common files Physical folder structure Below is
a basic folder structure for image
C\user\Documents\MyWebSites\Demo\Images
From the example above The virtual name of a web
picture might be Images/pic31.jpg.
But the physical name is C\usere\Documents\MyWeb
Sites\Demo\Images\pic31.jpg URLs and Paths URLs a
re to access files from the web
http//www.demo.com/html/html5_intro.asp gt
9
9. Difference between globalization and
localization Globalization is the process of
creating a software product that functions in
multiple locales. Localization is the way of adapt
ing a globalized application, which you have
already processed in a localized way, to a
particular locale. 10. Define ViewState. It is th
e method that the ASP.NET page frame utilize to
preserve page and control values between
round trips. When the HTML markup for the page is
given, the current state of the page and values
that must be kept during post back are arranged in
to base64-encoded strings.
10
11. Name the methods used to force all the
validation controls to run Page.Validate()
method 12. What is the difference between Respons
e.Write() and Response.Output.Write()
methods? Response.write() doesnt give output in
format. The latter one helps you to give output
in format Response.write it writes the text
stream , whereas Response.output.write it
writes the HTTP Output Stream.
11
13. Define Cookie A cookie is used to identify a
user. It is a small file that the server implants
on the users computer. Each time the same PC
requests a page with a browser, it will send the
cookie also. With ASP, one can both create and
retrieve cookie values. 14. How to Create a Cooki
e? The Response.Cookies is used to create
cookies. N.B. The command Response.Cookies must
appear BEFORE the lthtmlgt tag. In the below
example, we are creating a cookie named fname
and give it the value ABC lt Response.Cookies(
fname)ABC Response.Cookies(fname).Expires
Jan 10,2015
12
15. How to recover a Cookie Value? The command
Request.Cookies is used to recover a cookie
value. Example lt firstnameRequest.Cookies(fnam
e) response.write(Firstname firstname) gt Mo
re questions would be coming next. We are
updating our list of question and answers on .NET
13
  • Stay connected to this page of CRB Tech reviews
    for more technical up-gradation and other
    resources.
  • CRB Tech reviews will continue to enlighten you
    with such technical articles on .NET.

14
Thank You....
Write a Comment
User Comments (0)
About PowerShow.com