Asp.Net Interview Questions and Answers for Experienced - 2

Question: 6

How do you debug an ASP.NET Web application?

Attach the aspnet_wp.exe process to the DbgClr debugger.

Question: 7

What is the use of On Error Statement?

The On Error statement transfers execution to the section of code indicated by the Error Handler label.

Question: 8

Can two different programming languages be mixed in a single ASPX file?

No. ASP.NET uses parsers to strip the code from ASPX files and copy it to temporary files containing derived Page classes, and a given parser understands only one language.

Question: 9

How do you turn off cookies for one page in your site?

Use the Cookie.Discard Property which gets or sets the discard flag set by the server.

When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends.

Question: 10

Can you tell whether the Web controls support Cascading Style Sheets?

Yes.

Related Questions