Explain MVC application life cycle? In this article we will explain MVC application life cycle. For more articles and videos visit us on www. Read More. In this article we will explain.
|Published (Last):||20 September 2017|
|PDF File Size:||16.65 Mb|
|ePub File Size:||11.83 Mb|
|Price:||Free* [*Free Regsitration Required]|
B How to disable client side script in validators? A How can I show the entire validation error message in a message box on the client side? B You find that one of your validations is very complicated and does not fit in any of the validators, what will you do? B How can we kill a user session? I How do you upload a file in ASP. A What are different IIS isolation levels? B Explain the differences between Server-side and Client-side code? I Can you explain Forms authentication in detail? A How do I sign out in forms authentication?
A If cookies are not enabled at browser end does form Authentication work? A How to use a checkbox in a data grid? I What are the steps to create a windows service in VB. B What is the main difference between Grid layout and Flow Layout? A How do you enable tracing in on an ASP. NET page? B Which namespace is needed to implement debug and trace? A Can you explain the concept of trace listener? I What are trace switches?
Left to the user, you will enjoy to find this answer. However, note that does not mean that server side checks on custom validators do not execute. It does this redundant check two times, as some of the validators do not support client side scripting. Best is to go for CustomValidators. NET engine. Following are the steps which occur when we request a ASPX page :- The browser sends the request to the webserver.
Let us assume that the webserver at the other end is IIS. Once IIS receives the request he looks on which engine can serve this request. When we mean engine means the DLL who can parse this page or compile and send a response back to browser.
Which request to map to is decided by file extension of the page requested. DLL to compile. NET engine for compilation. Both these section have there own work to be done in order that the page is properly compiled and sent to the IIS.
HTTP modules inspect the incoming request and depending on that, they can change the internal workflow of the request. HTTP handler actually compiles the page and generates output. If you see your machine. ErrorHandlerModule, System. If you look at the web. Ok now the HTTP handler is where the actual compilation takes place and the output is generated. Example all. ASPX extension files will be compiled by System. I will leave this to the readers … Just a hint we have to use System. HttpPostedFile class.
Smtpmail class. Just a small homework creates a Asp. Do not Spam. NET application run in same process. So if any one crashes the other is also affected. Example let us say well this is not possible I have hosted yahoo, hotmail. So all application and the IIS process runs on the same process.
In case any website crashes, it affects every one. Therefore, in this case there are two processes process1 and process2. In process1, the IIS process is running and in process2, we have all Web application running. High Isolated :-In high isolated scenario every process is running is there own process.
In below figure there are five processes and every one handling individual application. This consumes heavy memory but has highest reliability. This attribute works like a compatibility option. NET threading model, we have to set attribute. NET framework, while client side code is executed on the browser.
In old ASP if you where said to create a login page and do authentication you have to do hell lot of custom coding. Now in ASP. NET that has made easy by introducing Forms authentication. So let us see in detail what form authentication is. Forms authentication uses a ticket cookie to see that user is authenticated or not.
That means when user is authenticated first time a cookie is set to tell that this user is authenticated. If the cookies expire then Forms authentication mechanism sends the user to the login page.
As shown below in the config file you can see we have give the cookie name and loginurl page. You will have create your login page that is the Login.
Let us assume that the login page has two textboxes TX name and txtapssword. Also, import System. Security and put the following code in login button of the page. If Page. Authenticate txtName. Text, txtPassword. Text Then FormsAuthentication. RedirectFromLoginPage txtName. Text, False Else lblStatus. Twist: - How can I track event in checkbox, which is one of the columns of a data grid? Note: - This is normally asked when the interviewer want to see that have you really worked practically on a project.
Windows Services are long-running executable applications that run in its own Windows session, which then has the ability to start automatically when the computer boots and also can be manually paused, stopped or even restarted. All the three main events can be used that is Start, stop and continue. It consists of two or more web server of the same configuration and they stream the same kind of contents. Therefore, there is a special switch, which stands in between these two servers and the users and routes the request accordingly.
Above figure explains in detail how web farm work. You can see there is a router in between which takes a request and sees which one of the server is least loaded and forwards the request to that server. Therefore, for request1 it route is server1, for request2 it routes server2, for request3 it routes to server3 and final request4 is routed to server4.
So you can see because we have web farm at place server1 and server2 are loaded with two request each rather than one server loading to full. One more advantage of using this kind of architecture is if one of the servers goes down we can still run with the other server thus having 24x7 uptime. Therefore, server1 gets a request, then server2 again, then server1, then server2 again. As shown in the above figure. This is good to help keep the load balanced between the server nodes.
If one performs better than the other, then send more requests there rather than which is moving slowly?
NET Interview Questions 4 th Edition By Shivprasad Koirala
Congrats Divya We will send you hard-copy of this book as soon as it will release Please email your shipping address Happy learning
Asp.Net Interview Question Part 3
Shiv Prasad Koirala Profile
Hi Folks, Download. Net Books from here. WCF-Programming in. Net-development 3. WPF in Csharp 5. Windows WorkFlow in. Net 3.