• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 12 pages
Exam (elaborations)

ASP.NET Test Questions

Document preview thumbnail
Preview 2 out of 12 pages

ASP.NET Test Questions What is ASP.Net? - It is a framework developed by Microsoft in which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc. What's the use of Response.Output.Write()? - We can write formatted output using Response.Output.Write(). In which event of page cycle is the ViewState available? - After the Init() and before the Page_Load(). What is the difference between Server.Transfer and Response.Redirect? - In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. The clients url history list or current url Server does not update in case of Server.Transfer. Response.Redirect is used to redirect the user's browser to another page or site. It performs trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address From which base class all Web Forms are inherited? - Page class. What are the different validators in ASP.NET? - 1.Required field Validator 2. Range Validator 3. Compare Validator 4. Custom Validator 5. Regular expression Validator 6. Summary Validator Which validator control you use if you need to make sure the values in two different controls matched? - Compare Validator control. What is ViewState? - ViewState is used to retain the state of server-side objects between page post backs. Where the viewstate is stored after the page postback? - ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. How long the items in ViewState exists? - They exist for the life of the current page. What are the different Session state management options available in ASP.NET? - 1. In- Process 2. Out-of-Process. In-Process stores the session in memory on the web server. Out-of-Process Session state management stores data in an external server. The external server may be either a SQL Server or a State Server. All objects stored in session are required to be serializable for Out-of-Process state management. How you can add an event handler? - Using the Attributes property of server side control. e.g. btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();") 1 btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();") What is caching? - Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file.


Document information

Uploaded on
April 6, 2024
Number of pages
12
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExcellentScores
3.8
(76)
Sold
306
Followers
227
Items
4200
Last sold
4 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.