Asp.Net Interview Questions and Answers - 2

Question: 6

Which are the namespaces that are imported automatically by Visual Studio in ASP.Net?

There are 7 namespaces which are imported automatically.

System

Collections

IO

web

web.UI

web.UI.HTMLControls

web.UI.WebControls

Question: 7

What is the difference between Server.Transfer and response.Redirect?

The Server.Transfer () method stops the current page from executing, and runs the content on the specified page, when the execution is complete the control is passed back to the calling page.

While the response.Redirect () method transfers the control on the specified page and the control is never passed back to calling page after execution.

Question: 8

Which two properties are on every validation control?

ControlToValidate and

ErrorMessage

Question: 9

Which method do you use to redirect the user to another page without performing a round trip to the client?

Server.transfer()

Question: 10

What is BCP?

BulkCopy is a tool used to copy huge amount of data from tables and views. But it won’t copy the structures of the same.

Related Questions