SlideShare a Scribd company logo
1 of 14
Top 15 ASP.Net Interview
Questions and Answers
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.
1. What is ASP?
Active Server Pages is a Microsoft’s server-side technology, which helps
in developing dynamic and user-friendly Web pages.
2. Define ASP.Net.
It is a development framework for building web pages and web sites with
HTML, CSS, JavaScript and server scripting.
3. ASP.net advantages?
ASP.Net advantage over ASP :
Compiled Code
Language Support
Strict Coding needs
Event-Driven Programming Model
3rd Party Controls
User Authentication
Easier Configuration & Deployment
Object and Page Caching
Higher Scalability
4. How to maintain session in ASP.NET?
In-process storage.
Session State Service.
Microsoft SQL Server.
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. Net’s own process.
Microsoft SQL Server
It is the final choice for storing state information.
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. Use of @RenderPage() method
@RenderPage() method is used to bring content from separate files.
Example:
<html>
<body>
@RenderPage(“header.cshtml”)
<h1>Hello Web Pages</h1>
<p>This is a paragraph</p>
@RenderPage(“footer.cshtml”)
</body>
</html>
8.What is the folder structure of ASP.NET Web Pages
Logical Folder Structure
Below is a basic folder 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 has common files
Physical folder structure
Below is a basic folder structure for image
C:userDocumentsMyWebSitesDemoImages
From the example above:
The virtual name of a web picture might be “Images/pic31.jpg”.
But the physical name is
“C:usereDocumentsMyWebSitesDemoImagespic31.jpg”
URLs and Paths
URLs are to access files from the web:
http://www.demo.com/html/html5_intro.asp %>
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 adapting a globalized application, which you
have already processed in a localized way, to a particular locale.
10. Define ViewState.
It is the 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 into base64-encoded
strings.
11. Name the methods used to force all the validation controls to
run
Page.Validate() method
12. What is the difference between Response.Write() and
Response.Output.Write() methods?
Response.write() doesn’t 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.
13. Define Cookie
A cookie is used to identify a user. It is a small file that the server
implants on the user’s 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 Cookie?
The “Response.Cookies” is used to create cookies.
N.B. The command Response.Cookies must appear BEFORE the
<html> tag.
In the below example, we are creating a cookie named “fname” and give
it the value “ABC” :
<%
Response.Cookies(“fname”)=”ABC”
Response.Cookies(“fname”).Expires=#Jan 10,2015#
15. How to recover a Cookie Value?
The command “Request.Cookies” is used to recover a cookie value.
Example:
<%
firstname=Request.Cookies(“fname”)
response.write(“Firstname=” & firstname)
%>
More questions would be coming next.
We are updating our list of question and answers on .NET
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.
Thank You....

More Related Content

What's hot

Music Downloading Website (HTML,CSS,PHP Presentation)
Music Downloading Website (HTML,CSS,PHP Presentation)Music Downloading Website (HTML,CSS,PHP Presentation)
Music Downloading Website (HTML,CSS,PHP Presentation)Anil Kumar
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0Dima Maleev
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...WebStackAcademy
 
Asp.net web page syntax overview
Asp.net web page syntax overviewAsp.net web page syntax overview
Asp.net web page syntax overviewSalam Khan
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0Buu Nguyen
 
mule salesforce
mule salesforcemule salesforce
mule salesforceF K
 
ASP.NET 12 - State Management
ASP.NET 12 - State ManagementASP.NET 12 - State Management
ASP.NET 12 - State ManagementRandy Connolly
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application Madhuri Kavade
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web applicationRahul Bansal
 
ATG - Installing WebLogic Server
ATG - Installing WebLogic ServerATG - Installing WebLogic Server
ATG - Installing WebLogic ServerKeyur Shah
 

What's hot (20)

Music Downloading Website (HTML,CSS,PHP Presentation)
Music Downloading Website (HTML,CSS,PHP Presentation)Music Downloading Website (HTML,CSS,PHP Presentation)
Music Downloading Website (HTML,CSS,PHP Presentation)
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Chapter 26
Chapter 26Chapter 26
Chapter 26
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
 
Asp.net web page syntax overview
Asp.net web page syntax overviewAsp.net web page syntax overview
Asp.net web page syntax overview
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
mule salesforce
mule salesforcemule salesforce
mule salesforce
 
Intro To Asp
Intro To AspIntro To Asp
Intro To Asp
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
ASP.NET 12 - State Management
ASP.NET 12 - State ManagementASP.NET 12 - State Management
ASP.NET 12 - State Management
 
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
 
AngularJS By Vipin
AngularJS By VipinAngularJS By Vipin
AngularJS By Vipin
 
Sqllite
SqlliteSqllite
Sqllite
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
Asp.net
Asp.netAsp.net
Asp.net
 
ATG - Installing WebLogic Server
ATG - Installing WebLogic ServerATG - Installing WebLogic Server
ATG - Installing WebLogic Server
 
Mongodb By Vipin
Mongodb By VipinMongodb By Vipin
Mongodb By Vipin
 
jQuery plugins & JSON
jQuery plugins & JSONjQuery plugins & JSON
jQuery plugins & JSON
 

Viewers also liked

CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016
CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016
CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016Nelson Leiva®
 
Dot Net Certification Course Pune
Dot Net Certification Course PuneDot Net Certification Course Pune
Dot Net Certification Course PunePooja Gaikwad
 
Sample project management
Sample project managementSample project management
Sample project managementWriters Club
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechPooja Gaikwad
 
Potential enhancement of thermoelectric energy conversion in cobaltite superl...
Potential enhancement of thermoelectric energy conversion in cobaltite superl...Potential enhancement of thermoelectric energy conversion in cobaltite superl...
Potential enhancement of thermoelectric energy conversion in cobaltite superl...Anastasios Englezos
 
2015 Social CEO Report
2015 Social CEO Report2015 Social CEO Report
2015 Social CEO ReportJared McKinney
 

Viewers also liked (10)

CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016
CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016
CGR Presentación de Competencias al 29° J.C de Santiago 24.11.2016
 
Dot Net Certification Course Pune
Dot Net Certification Course PuneDot Net Certification Course Pune
Dot Net Certification Course Pune
 
òPera
òPeraòPera
òPera
 
Creative commons
Creative commonsCreative commons
Creative commons
 
Sample project management
Sample project managementSample project management
Sample project management
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
 
Potential enhancement of thermoelectric energy conversion in cobaltite superl...
Potential enhancement of thermoelectric energy conversion in cobaltite superl...Potential enhancement of thermoelectric energy conversion in cobaltite superl...
Potential enhancement of thermoelectric energy conversion in cobaltite superl...
 
2015 Social CEO Report
2015 Social CEO Report2015 Social CEO Report
2015 Social CEO Report
 
Types of drawing
Types of drawingTypes of drawing
Types of drawing
 
Trabajo individual ecologia_oviedo_ricardo
Trabajo individual ecologia_oviedo_ricardoTrabajo individual ecologia_oviedo_ricardo
Trabajo individual ecologia_oviedo_ricardo
 

Similar to Top 15 asp dot net interview questions and answers

Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
ASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOMASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOMAashish Jain
 
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)Prof Ansari
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
Super billing asp.net
Super billing   asp.netSuper billing   asp.net
Super billing asp.netsuperb11b
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web FormsSAMIR BHOGAYTA
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questionsAkhil Mittal
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netneeta1995
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.netVasilios Kuznos
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)amelinaahmeti
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)amelinaahmeti
 
Programming web application
Programming web applicationProgramming web application
Programming web applicationaspnet123
 

Similar to Top 15 asp dot net interview questions and answers (20)

Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Asp.net
Asp.netAsp.net
Asp.net
 
ASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOMASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOM
 
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Super billing asp.net
Super billing   asp.netSuper billing   asp.net
Super billing asp.net
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
 
Asp dot net final (2)
Asp dot net   final (2)Asp dot net   final (2)
Asp dot net final (2)
 
asp_intro.pptx
asp_intro.pptxasp_intro.pptx
asp_intro.pptx
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
PPT
PPTPPT
PPT
 
Asp.net
Asp.netAsp.net
Asp.net
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.net
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Programming web application
Programming web applicationProgramming web application
Programming web application
 
ASP
ASPASP
ASP
 

More from Pooja Gaikwad

Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIBuilding A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIPooja Gaikwad
 
How To Optimize Asp.Net Application ?
How To Optimize Asp.Net Application ?How To Optimize Asp.Net Application ?
How To Optimize Asp.Net Application ?Pooja Gaikwad
 
Learning .NET Attributes
Learning .NET AttributesLearning .NET Attributes
Learning .NET AttributesPooja Gaikwad
 
Forms authentication in asp dot net
Forms authentication in asp dot netForms authentication in asp dot net
Forms authentication in asp dot netPooja Gaikwad
 
Owin and katana overview
Owin and katana overviewOwin and katana overview
Owin and katana overviewPooja Gaikwad
 
An Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB TechAn Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB TechPooja Gaikwad
 
Importance of msil in dot net
Importance of msil in dot netImportance of msil in dot net
Importance of msil in dot netPooja Gaikwad
 
History of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-TechHistory of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-TechPooja Gaikwad
 
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB TechExploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB TechPooja Gaikwad
 
.Net framework-garbage-collection
.Net framework-garbage-collection.Net framework-garbage-collection
.Net framework-garbage-collectionPooja Gaikwad
 

More from Pooja Gaikwad (10)

Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIBuilding A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- II
 
How To Optimize Asp.Net Application ?
How To Optimize Asp.Net Application ?How To Optimize Asp.Net Application ?
How To Optimize Asp.Net Application ?
 
Learning .NET Attributes
Learning .NET AttributesLearning .NET Attributes
Learning .NET Attributes
 
Forms authentication in asp dot net
Forms authentication in asp dot netForms authentication in asp dot net
Forms authentication in asp dot net
 
Owin and katana overview
Owin and katana overviewOwin and katana overview
Owin and katana overview
 
An Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB TechAn Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB Tech
 
Importance of msil in dot net
Importance of msil in dot netImportance of msil in dot net
Importance of msil in dot net
 
History of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-TechHistory of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-Tech
 
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB TechExploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB Tech
 
.Net framework-garbage-collection
.Net framework-garbage-collection.Net framework-garbage-collection
.Net framework-garbage-collection
 

Recently uploaded

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Top 15 asp dot 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 Microsoft’s server-side technology, which helps in developing dynamic and user-friendly Web pages. 2. Define ASP.Net. It is a development framework 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 needs Event-Driven Programming Model 3rd Party Controls User Authentication Easier Configuration & Deployment Object and Page Caching Higher Scalability
  • 5. 4. How to maintain session in ASP.NET? In-process storage. Session State Service. Microsoft SQL Server. 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. Net’s own process. Microsoft SQL Server It is the final choice 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 @RenderPage() method @RenderPage() method is used to bring content from separate files. Example: <html> <body> @RenderPage(“header.cshtml”) <h1>Hello Web Pages</h1> <p>This is a paragraph</p> @RenderPage(“footer.cshtml”) </body> </html>
  • 8. 8.What is the folder structure of ASP.NET Web Pages Logical Folder Structure Below is a basic folder 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 has common files Physical folder structure Below is a basic folder structure for image C:userDocumentsMyWebSitesDemoImages From the example above: The virtual name of a web picture might be “Images/pic31.jpg”. But the physical name is “C:usereDocumentsMyWebSitesDemoImagespic31.jpg” URLs and Paths URLs are to access files from the web: http://www.demo.com/html/html5_intro.asp %>
  • 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 adapting a globalized application, which you have already processed in a localized way, to a particular locale. 10. Define ViewState. It is the 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 into 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 Response.Write() and Response.Output.Write() methods? Response.write() doesn’t 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 user’s 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 Cookie? The “Response.Cookies” is used to create cookies. N.B. The command Response.Cookies must appear BEFORE the <html> tag. In the below example, we are creating a cookie named “fname” and give it the value “ABC” : <% 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: <% firstname=Request.Cookies(“fname”) response.write(“Firstname=” & firstname) %> More 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.