0% found this document useful (0 votes)
281 views3 pages

Awp Viva

ASP.NET is Microsoft's framework for building web applications using C# code behind pages. View state preserves page and control values between postbacks by default through serialization. A hyperlink does not support click or command events like a LinkButton. Navigation controls organize links hierarchically to aid navigation. Client-side validation uses JavaScript for immediate feedback, while server-side validation occurs on form submission to the server. Themes allow defining common styles across an ASP.NET website.

Uploaded by

Zoya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
281 views3 pages

Awp Viva

ASP.NET is Microsoft's framework for building web applications using C# code behind pages. View state preserves page and control values between postbacks by default through serialization. A hyperlink does not support click or command events like a LinkButton. Navigation controls organize links hierarchically to aid navigation. Client-side validation uses JavaScript for immediate feedback, while server-side validation occurs on form submission to the server. Themes allow defining common styles across an ASP.NET website.

Uploaded by

Zoya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Q1. What is ASP.NET?

ASP.NET is Microsoft's framework to build Web applications. ASP.NET is a part of .NET


Framework. ASP.NET and Web Forms are used to build the front end and in the backend, C#
language is used. ASP.NET runs on a Web Server, IIS.

Q2. What is View State?


View State is the method to preserve the Value of the Page and Controls between round trips. It
is a Page-Level State Management technique. View State is turned on by default and normally
serializes the data in every control on the page regardless of whether it is actually used during a
post-back.

Q3. What is the difference between Hyperlink and LinkButton?

Hyperlink control does not have the Click and Command events; whereas the LinkButton
control has these events, which can be handled in the code-behind file of the Web page.

Q4. What are navigation controls?

Navigation controls help us to navigate in a Web application easily. These controls store all the
links in a hierarchical or drop-down structure; thereby facilitating easy navigation in a Web
application
.

Q5. How many navigation controls are in ASP.NET?

 SiteMapPath
 Menu
 TreeView

There are three navigation controls in ASP.NET.

Q6. What is the difference between client-side and server-side validations?

Client-side validations work at the client end with the help of scripting languages such as
JavaScript or jQuery and VBScript. On the other hand, server-side validations work at the
server end with the help of programming languages like C#, VB, F# etc. Server validations
work when you submit or send data to the server.

Department of BSc. IT Page 1


Q7. What are the various validators in ASP.NET?

RequiredFieldValidator: This validator is used when you don’t want the container to stay
empty. It examines whether the control possesses any value or not.
RangeValidator: It finds out whether the value in validated control falls the specific range or
not. CompareValidator: It tests if the value in controls matches certain specific values or not.
RegularExpressionValidator: Tests if the particular value matches an explicit regular expression
or not.
CustomValidator: Useful for defining User Defined validation.
Summary Validation: Shows summary of all existing validation errors over an ASP.NET page.

Q8. What is the concept of Postback in ASP.NET?

Postback is a request which is sent from a client to the server from the same page user is
working with. There is an HTTP POST request mechanism in ASP.NET. It posts a complete
page back to the server to refresh the whole page.

Q9. What is the difference between ASP.NET Web forms and ASP.NET MVC?

ASP.NET Web forms uses the page controller approach for rendering layout. In this approach,
every page has its controller.

On the other hand, ASP.NET MVC uses the Front Controller approach. In this approach, there
is a common controller for all pages.

Q10. What is the use of Global.asax file?


The Global.asax file is used to execute the application-level events and sets application-level
variables.

Q11. What is AJAX?

AJAX stands for Asynchronous JavaScript And XML. In a nutshell, it is the use of the
XMLHttpRequest object to communicate with servers. It can send and receive information
in various formats, including JSON, XML, HTML, and text files.

Q12. What are Cookies in ASP.NET?

A cookie is a small bit of text that accompanies requests and pages as they go between the
Web server and browser. The cookie contains information the Web application can read
whenever the user visits the site.

Q13. What is master page in ASP.NET?

A master page is a defined set of formatting that is applied to the sections of your
document-style report. In a template, you can specify a master page that includes a header
element, a footer element, and layout properties, such as orientation and borders.

Q14. What are the major events in global.aspx?

Application_Init: Fired when an application initializes or is first called. It is invoked for all


HttpApplication object instances.

Application_Disposed: Fired just before an application is destroyed. This is the ideal location


for cleaning up previously used resources.

Application_Error: Fired when an unhandled exception is encountered within the application.

Application_Start: Fired when the first instance of the HttpApplication class is created. It


allows you to create objects that are accessible by all HttpApplication instances.

Application_End: Fired when the last instance of an HttpApplication class is destroyed. It is


fired only once during an application's lifetime.

Application_BeginRequest: Fired when an application request is received. It is the first event


fired for a request, which is often a page request (URL) that a user enters.

Q15. What is Themes in ASP.NET?

ASP.NET themes are a collection of properties that define the appearance of pages and
controls in your Web site. A theme can include skin files, which define property settings for
ASP.NET Web server controls, and can also include cascading style sheet files (. css files) and
graphics.

Department of BSc. IT Page 2

You might also like