Dot Net Interview question by Shivprasad Koirala. Download as PDF. Stumbles with simple ADO.NET and SQL questions during interview.But guys that’s ok.

Shivprasad Koirala Books

MVC Interview questions and answers PDF. Covers the below questions What is MVC(Model view controller)? Can you explain the complete flow of MVC? Is MVC suitable for both windows and web application? What are the benefits of using MVC? Is MVC different from a 3 layered architecture?

What is the latest version of MVC? What is the difference between each version of MVC? What are routing in MVC? Where is the route mapping code written? Can we map multiple URL’s to the same action?

How can we navigate from one view to other view using hyperlink? How can we restrict MVC actions to be invoked only by GET or POST? How can we maintain session in MVC? What is the difference between tempdata,viewdata and viewbag? What are partial views in MVC?

How did you create partial view and consume the same? How can we do validations in MVC? Can we display all errors in one go? How can we enable data annotation validation on client side? What is razor in MVC? Why razor when we already had ASPX? So which is a better fit Razor or ASPX?

How can you do authentication and authorization in MVC? How to implement windows authentication for MVC? How do you implement forms authentication in MVC? How to implement Ajax in MVC? What kind of events can be tracked in AJAX? What is the difference between “ActionResult” and “ViewResult”?

What are the different types of results in MVC? What are “ActionFilters”in MVC? Can we create our custom view engine using MVC? How to send result back in JSON format in MVC?

What is “WebAPI”? But WCF SOAP also does the same thing, so how does “WebAPI” differ? With WCF also you can implement REST,So why 'WebAPI'?

How can we detect that a MVC controller is called by POST or GET?

Contents. Introduction In this section we will touch base on one of important concepts in ASP.NET. You can download my.NET Interview Question PDF from. I have also put all these design patterns in a video format and uploaded on.

You can visit and download the complete architecture interview questions PDF which covers SOA, UML, Design Patterns, Togaf, OOPs etc. You can download the software architecture interview questions PDF here:. Previous parts of my interview questions series for architects:. Part 1 -.

Part 2 -. Part 3 -.

Part 4 - UML interview questions: Part 1: Happy job hunting. (B) What is the sequence in which ASP.NET events are processed? Following is the sequence in which the events occur:. PageInit. Page load.

Control events. Page unload event Pageinit event only occurs when first time the page is started, but Page Load occurs in subsequent requests of the page. (B) In which event are the controls fully loaded? Page load event guarantees that all controls are fully loaded. Controls are also accessed in PageInit events but you will see that view state is not fully loaded during this event.

(B) How can we identify that the Page is postback? The Page object has an IsPostBack property which can be checked to know if the page was posted back.

(B) How does ASP.NET maintain state in between subsequent requests? Refer caching chapter. (A) What is event bubbling?

Server controls like DataGrid, DataList, and Repeater can have other child controls inside them. For example, DataGrid can have a combobox inside DataGrid. These child controls do not raise their events by themselves, rather they pass the event to the container parent (which can be a DataGrid, DataList, Repeater), which are passed to the page as an ItemCommand event. As the child control sends events to the parent it is termed as event bubbling. (B) How do we assign page specific attributes? Page attributes are specified using the @Page directive.

Net Interview Questions By Shivprasad Koirala Pdf

(A) How do we ensure view state is not tampered? Using the @Page directive and setting the EnableViewStateMac property to true. (B) What is the use of @Register directives? @Register directive informs the compiler of any custom server control added to the page. (B) What is the use of the Smart Navigation property? It’s a feature provided by ASP.NET to prevent flickering and redrawing when the page is posted back. Note: This is only supported for the IE browser.

Project with browser compatibility requirements have to think of other ways to avoid flickering. (B) What is the AppSetting section in the Web.Config file? The Web.config file defines the configuration for a web project.

Using the AppSetting section, we can define user-defined values. The example below defines the “Connection String” section which will be used throughout the project for the database connection. (B) Where is the ViewState information stored? In the HTML hidden fields. (I) What is the use of the @OutputCache directive in ASP.NET?

It is used for caching. See more in the Caching article. (B) How can we create custom controls in ASP.NET? User controls are created using.ASCX in ASP.NET. After the.ASCX file is created you need two things so that the ASCX can be used in the project: <%@ Register tag prefix =' Accounting' Tag name =' footer' Src =' Footer.ascx'%. Register the ASCX control in the page using the <%@ Register directive.

Example:. Now to use the above accounting footer in the page, you can use the below directive: (B) How many types of validation controls are provided by ASP.NET? There are six main types of validation controls:. RequiredFieldValidator: It checks whether the control has any value. It is used when you want the control to not be empty. RangeValidator: It checks if the value in the validated control is in that specific range.

Example, TxtCustomerCode should not be more than eight lengths. CompareValidator: It checks that the value in the controls should match some specific value. Example, textbox TxtPie should be equal to 3.14. RegularExpressionValidator: When we want the control, the value should match with a specific regular expression. CustomValidator: It is used to define User Defined validation. ValidationSummary: It displays summary of all current validation errors on an ASP.NET page. Note: It is rare that someone will ask step by step about all the validation controls.

Rather they will ask for what type of validation a validator will be used. For example in one of the interviews I was asked how to display the summary of all errors in a validation control. Just uttered one word: ValidationSummary. (B) Can you explain AutoPostBack?

If we want the control to automatically post back in case of an event, we will need to check this attribute as true. For example, on a ComboBox change, we need to send the event immediately to the server side then set the AutoPostBack attribute to true. (B) How can you enable automatic paging in DataGrid? Following are the things to be done in order to enable paging in DataGrid:. Set AllowPaging to true. In the PageIndexChanged event set the current page index clicked.

Note: The answers are very short, if you have implemented them practically it is just a revision. If you are a fresher, just make a sample code using a DataGrid and try to implement this functionality. (B) What is the use of the GLOBAL.ASAX file? It allows to execute ASP.NET application level events and set application-level variables.

(B) What is the difference between Web.config and Machine.Config? Web.config files apply settings to each web application, while Machine.config file apply settings to all ASP.NET applications. (B) What is a SESSION and APPLICATION object? The Session object stores information between HTTP requests for a particular user, while the Application object is global across users. Other interview questions PDFs. Tad McClellan 28-Aug-08 14:51 28-Aug-08 14:51 So right now you have a 1.4 ish.

You have a bunch of ones and what looks like a 5 and nothing in between. If I do the math, then that's 1 five, probably yours. So my problem with this is on several levels not to mention that some of the answers aren't really correct. I give technical interviews all the time. Let me tell you, what gets my attention is not that the person I'm talking to gets the right answer (I expect that since they say they know asp.net on their resume) but it's how the answer is given. The difficulty with technology is not in the technology but in the communication of technical ideas. If a developer can't communicate more then just textbook answers and explain the why of things then I'm not interested.

First thing i have not voted myself.So does not matter if that rating is negative. What you said is right textbook answer people will never complete project. The above questions are for quick revision. I mean many experenced people get lost with simple questions, its not that they do not know the answer its that they are in such busy schedule that its not possible for them to revise or probably some where they have lost their fundamentals. We should always judge people with logic, but many IT companies still ask those bookish questions and not answering them does not clear even the first round.

Like what is SOA. I am sure many people who answer this will not be able to complete project practically and many who do not are excellent in delivery. Why should we loose just because we do not know definition of something.

Just my two cents. First, to help you guys find some common ground, I'd like to say that the interview process must be quite different in India and in America.

The funny thing is that during my first few years of development, I was able to answer text book questions. After over 15 years in the job, I forgot many things, and many things changed. Today I'm able to solve more complex problems and I now consider these kind of questions to be 'googleable details' that I do not always know from memory.

Never the less, I think these questions can be useful for phone screening. When receiving many resumes, it is useful to have such a list of questions so that a manager (who doesn't have to be too technical) can simply eliminate candidates quickly before the real interview. That way we save time by only meeting with the few candidates who answer at least some of the questions correctly. And then go to the logic questions which really matter during the interview. Indeed, Shivprasad covers most common concepts rather nicely, but as he point out this is more of a quick revision rather then a learning material. No one should use this as a resource for learning unknown concepts, I believe they should be used to fresh up the vocabulary before the interview, at least that's why I use them.

Nevertheless I would also like to see more of these kind of materials to address a whiteboard or paper tests which are more and more used in interviews, for this I use. It has a rather nice collection of various tests and for web developers I believe these and these would be a great preparation materials. Last Visit: 31-Dec-99 19:00 Last Update: 15-Feb-18 10:59 1 General News Suggestion Question Bug Answer Joke Praise Rant Admin Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.