Question -
Where does VS.NET store Web application projects?
Answer
- Web application projects create a virtual folder for each
project where all the files of the projects are stored. The virtual folder can
be viewed in IIS and property of that folder determines where the files are
physically stored.
Question - Describe Web application’s life cycle.
Answer
- A Web application starts with the first request for a resource.
On request, Web forms are instantiated and processed in the server.
Server sends its response to the client.
Application ends once all client sessions end.
Question - Define class module and a code module.
Question - Steps to execute a stored
procedure from Web Application.
Answer
- Create a command object.
Set the object’s CommandText property to the name of the stored procedure.
Set the CommandType property to stored Procedure.
Execute stored procedure using command object’s method.
Question - Describe exception handling in ASP.NET.
Answer
- Exception handling correct unusual occurrences and prevent
application from getting terminated. You can use Try(try) block and Error event
procedures to handle exceptions.
Question - What are the exception-handling
ways in ASP.NET?
Answer
- Exceptions can be handled by using Try(try) block and Error
event procedures at the global, application, or page levels by using the Server
object’s GetLastError and ClearError methods.
Part 1 |
Part 2 |
Part 3 |
Part 4 |
part 5