Asp.Net Practical Viva Questions and Answers - 1

Question: 1

What are all the assemblies that I can reference in an ASPX file without using @ Assembly directives?

ASP.NET links to the following assemblies by default:

System.Web.dll

System.Web.Services.dll

System.Xml.dll

Mscorlib.dll

System.dll

System.Data.dll

System.Drawing.dll

Question: 2

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

Server.transfer()

Question: 3

What are VSDISCO files?

VSDISCO files are DISCO files that support dynamic discovery of Web services.

If you place the following VSDISCO file in a directory on your Web server, for example, it returns references to all ASMX and DISCO files in the host directory and any subdirectories not noted in elements.

Question: 4

How do you create a permanent cookie?

Setting the Expires property to Min Value means that the Cookie never expires.

Question: 5

Can you tell me whether an ASP.NET application determines whether cookies are enabled in a browser?

Determining whether cookies are enabled requires a round trip to the browser and back.

If you can live with an extra round trip, the basic strategy is to return a cookie in an HTTP response and redirect to a page that checks for the cookie.

Related Questions