Thursday, 3 February 2011

Live Interview with FUTURESOFT P. LTD DELHI for ASP.Net


Q.1 What is the difference between Server.Transfer and Response.Redirect?
Ans: Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist across the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive.

Response.Dedirect() : client know the physical location (page name and query string as well). Context.Items loses the persistence when navigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they’re difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems.
As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client. Examples:

Server.Transfer
Server.Transfer("Webform2.aspx")

Response.Redirect
Response.redirect("Webform2.aspx")

Q.2 What are row level and statement level triggers?
Ans: The FOR EACH ROW option determines whether the trigger is a row trigger or a statement trigger. If you specify FOR EACH ROW, then the trigger fires once for each row of the table that is affected by the triggering statement. The absence of the FOR EACH ROW option indicates that the trigger fires only once for each applicable statement, but not separately for each row affected by the statement.

Q.3 page events in asp.net ?
Ans: When we talk about the ASP.Net 1.0/1.1 we find total of the nine events that are:
ü      AbortTransaction.
ü      CommitTransaction
ü      DataBinding
ü      Dispose
ü      Error
ü      Init
ü      Load
ü      PreRender
ü      Unload

Q.4 What's in an HTTP request?
Ans: Whenever your web browser fetches a file (a page, a picture, etc) from a web server, it does so using HTTP - that's "Hypertext Transfer Protocol". HTTP is a request/response protocol, which means your computer sends a request for some file (e.g. "Get me the file 'home.html'"), and the web server sends back a response ("Here's the file", followed by the file itself).

That request which your computer sends to the web server contains all sorts of (potentially) interesting information. We'll now examine the HTTP request your computer just sent to this web server, see what it contains, and find out what it tells me about you.

Q.5 What is NVL Function ?
Ans: NVL evaluates expression1. If expression1 is not NULL, then NVL returns the value of expression1. If expression1 is NULL, NVL returns the value of expression2. The expressions expression1 and expression2 can be of any data type, as long as they can be cast to a common compatible data type.

Suppose that the addr column of the employees table has NULL values in some rows, and the user wants to be able to print the label Address unknown for these rows. The user enters the following SELECT statement to display the label Address unknown when the addr column has a NULL value:

SELECT fname, NVL (addr, 'Address unknown') AS address
FROM employees

Q.6 ASP.NET Authentication ?
Ans: Authentication is the process of obtaining identification credentials such as name and password from a user and validating those credentials against some authority. If the credentials are valid, the entity that submitted the credentials is considered an authenticated identity. Once an identity has been authenticated, the authorization process determines whether that identity has access to a given resource.

ASP.NET implements authentication through authentication providers, the code modules that contain the code necessary to authenticate the requestor's credentials. The topics in this section describe the authentication providers built into ASP.NET.

Ø      Windows Authentication
Ø      Forms Authentication
Ø      Passport Authentication

4 comments:

  1. wow great i think if anyone follows this blog he will success in interview

    ReplyDelete
  2. Superb information for me, Thank to you.

    ReplyDelete
  3. lage reha verry goooooooooooood

    ReplyDelete
  4. wow great i think if anyone follows this blog he will success in interview

    ReplyDelete