ASP.NET Web Applications Flashcards
7 cards from real MCTS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 ASP.NET Web Applications flashcards as text
Which ASP.NET membership provider stores user credentials in a SQL Server database by default?
Answer: SqlMembershipProvider
SqlMembershipProvider is the default ASP.NET membership provider that stores user credentials and profile data in a SQL Server database.
In ASP.NET, what is the purpose of the HttpModule interface?
Answer: To intercept and process HTTP requests across all requests in the pipeline
HttpModules plug into the ASP.NET request pipeline and can handle events fired for every request, enabling cross-cutting concerns like authentication and logging.
What does the OutputCache directive's VaryByParam attribute control?
Answer: Which query string or POST parameters create separate cache entries
VaryByParam instructs ASP.NET to maintain distinct cached versions of a page output for each unique combination of specified query string or form parameters.
Which GridView event should you handle to perform custom logic when a row is being deleted?
Answer: RowDeleting
The RowDeleting event fires before the delete operation executes, allowing you to cancel or customize the deletion logic.
In ASP.NET Web Forms, what is the role of the IsPostBack property?
Answer: Indicates whether the page is being loaded in response to a client postback
IsPostBack returns true when the page is loaded because a user action triggered a form submission back to the server, helping you avoid re-initializing data on postbacks.
Which attribute is applied to an ASP.NET Web API action method to restrict it to HTTP PUT requests only?
Answer: [HttpPut]
[HttpPut] is the standard attribute in ASP.NET Web API and MVC to constrain an action method to respond only to HTTP PUT requests.
What is the primary difference between Server.Transfer and Response.Redirect in ASP.NET?
Answer: Server.Transfer processes the new page on the server without a round-trip, while Response.Redirect causes the browser to make a new request
Server.Transfer internally forwards execution to another ASPX page without a browser round-trip, keeping the original URL in the address bar, whereas Response.Redirect sends a 302 response causing the browser to issue a new GET request.