EnableViewState and ViewStateMode properties

Difference between EnableViewState and ViewStateMode properties

1. Using EnableViewState property we only have 2 options
     We can turn off view state altogether,
                              or
     Enable viewstate for the entire page and then turn it off on a control-by-control basis.

2. If you want to turn of ViewState for the entire page and only enable it for specific controls on the page, then we have to use ViewStateMode property in conjunction with EnableViewState.

3. EnableViewState property only accepts true or false values and the default value is true, where as ViewStateMode property can have a value of - Enabled, Disabled and inherit. Inherit is the default value for ViewStateMode property.

4. ViewStateMode property is introduced in ASP.NET 4, where as EnableViewState exists from a long time.

5. If EnableViewState is to True, only then the ViewStateMode settings are applied, where as, if EnableViewState is set to False then the control will not save its view state, regardless of the ViewStateMode setting. In short if EnableViewState is set to False, ViewStateMode setting is not respected.

6. To disable view state for a page and to enable it for a specific control on the page, set the EnableViewState property of the page and the control to true, set the ViewStateMode property of the page to Disabled, and set the ViewStateMode property of the control to Enabled.

ASP.NET Page is very SLOW. What will you do to make it FAST

This is a very common asp.net interview question asked in many interviews. There are several reasons for the page being slow. We need to identify the cause.

1. Find out which is slow, is it the application or the database : If the page is executing SQL queries or stored procedures, run those on the database and check how long do they take to run. If the queries are taking most of the time, then you know you have to tune the queries for better performance. To tune the queries, there are several ways and I have listed some of them below.

   a) Check if there are indexes to help the query
   b) Select only the required columns, avoid Select *.
   c) Check if there is a possiblity to reduce the number of joins
   d) If possible use NO LOCK on your select statements
   e) Check if there are cursors and if you can replace them with joins

2. If the queries are running fast, then we know it is the application code that is causing the slowness. Isolate the page event that is causing the issue by turning tracing on. To turn tracing on, set Trace="true" in the page directive. Once you have tracing turned on you should see trace information at the bottom of the page as shown in the image below. In this case Page Load event is taking the maximum time. So we know, the code in Page_Load event is causing the issue. Once you look at the code, you should be able to nail down the issue.

ASP.NET Page is very SLOW. What will you do to make it FAST

When I create a new ASP.NET 4 web application, the web.config file is almost empty. What happened to all the configuration elements that were there prior to ASP.NET 4?

All the major configuration settings are moved into machine.config file, and all the applications will inherit the setting from this file. If an application needs to override the default settings, we can do so using the application specific configuration (web.config) file. ASP.NET 4 applications have clean web.config files.

If you create a new asp.net 4 empty web application, the only entry that you will find is shown below.


Note: If you create a new ASP.NET Web Application, instead of a new ASP.NET Empty Web Application, you will find a lot more confiuration entries in the web.config file. This is because, the template for ASP.NET web application overrides some of the default settings inherited from machine.config.

What are the different environments in your development process or development life cycle at your company? | ASP.NET

This is a general interview question and not very specific to ASP.NET. Usually, the interviewer asks this question to measure your understanding of the different environments and their role in software development. Some interviewers, may also ask this question, to check if you really have the work experience you are claiming or just faking it.  

1. Development
2. QA
3. Staging
4. UAT (User Acceptance Testing)
5. Production

1. Development Environment - All the developers check in their current work into development environment.

2. QA (Quality Assurance) Environment - This is the environment, where testers (QA) test the application. QA cannot test on development environment, because developers are continuously checking in new code. So, if there is a bug, we don't know, if it's caused by the old or new code. In short,  if development is going on in the same environment it would be difficult to keep up with the current state. There will be lot of confusion, if the developer is trying to fix in the same area as the tester is testing. Without development and QA environment being seperate their is no way to do proper testing.

3. Staging Environment - Many organisations, try to keep their staging environment as identical as possible to the actual production environment. The primary reason for this environment is to identify any deployment related issues. Also, if you are developing a B2B (Business to Business) application, you may be interfacing with other service provider systems. Many organisations, usually setup their staging environment to interface with the service providers as well, for complete end to end testing.

4. Production Environment - The actual live environment, that we use for day to day business.

Note: In general, the code flows from Development => QA => Staging => Production

ASP.NET - TOPIC WISE Interview Questions and Answers

What are the different environments in your development process

When I create a new ASP.NET 4 web application, the web.config file is almost empty. What happened to all the configuration elements that were there prior to ASP.NET 4?

ASP.NET Page is very slow. What will you do to make it fast

What is the difference between EnableViewState and ViewStateMode properties

Explain SQL Injection Attack with an example ?

Explain Dependency Injection with an example ?

Interview Questions related to Dependency Injection ?

What is the process of strong naming an assembly ?

Interview Questions related to strong named assemblies

How is the DLL HELL problem solved in .NET?

What is DLL HELL in .NET?

What is the difference between layers and tiers?

What are the advantages and disadvantages of a layered architecture

What is the difference between const and static read-only member?

Linq Interview Questions Part 1

Linq Interview Questions Part 2

Best pactices in developing asp.net web applications - Part 1

Best pactices in developing asp.net web applications - Part 2

Data Access Security

HTTP modules and HTTP Handlers

Themes and Skins

DataSet

Globalization

C# Interview Questions - Arrays

XML - Validating XML documents

XML

Caching application data

Fragment caching

Caching

Application build

Master Pages

Passport authentication

SSL and HTTPS

Forms authentication

Windows authentication

ADO.NET Interview Questions

Basic ADO.NET Interview Questions

ASP.NET controls

Cookies

Events

Exception Handling

Managed Code and Unmanaged Code

ASP.NET Page navigation techniques

Query Strings

Web application Security

Session State and Application State

Techniques to send data from one web form to another web form

Tracing

Transactions

Validation controls

ViewState

Web Application maintainance

Web farm and Web garden

Web user controls

Custom Controls

Style sheets

NOMURA ASP.Net INTERVIEW QUESTIONS and ANSWERS

ASP.NET INTERVIEW QUESTIONS and ANSWERS :-


As in my case, following technical questions (whatever I recollect) were asked during different interview rounds:

Round 1 (Telephonic):

  • Explanation of the most recent project (Technical aspect)
  • What technically was the best thing you think you contributed in your project
  • Some questions on 3.5 framework (my last project was in 3.5):
  • New language features (Ans: Object initializers, Collection initializers, automatic getters setters, LINQ,
  • Inbuilt delegates: Action, Predicate, Func. (Note: This was asked scenario based. Learn all three types and based on the scenario given by the interviewer, tell which delegate you will use)
  • Question on a LINQ query. Where did you use exactly in your project?


ASP.NET questions:

  1. A gridview question: If you have lakhs of records with page size of 500 records displayed and if you have implemented default sorting and paging on a datagrid then it is not going to help. What according to you can you do to improve performance for paging and sorting.
  2. How to implement callback (ICallbackHandler interface)
  3. Have you used webservice? What types can be used in webmethod parameters, if you wish to interface the webservice with applications written in other languages like java etc. (Note: Whenever you find answer for this, let me also know)
  4. How to call webservice from javascript.
  5. SQL Server: Only one question was asked. What is Common Table Expression


Round 2:
This round was taken by VP. Following questions were asked:

  1. Why did you get only __ % in your final year?
  2. What are collections in general? What type of collections have you used?
  3. If you have an ebook and you wish to know the count of each unique words appearing in the ebook, tell me the code you will write in .NET?
  4. What are your aspirations?


Round 3:
This round was taken by onsite coordinator. Typically people in UK takes this interview. For some it is pure techincal (but comparatively easier then what Indians ask), for me it was more from the point of view of, can you manage a project on your own.
Questions:
  1. Max team size you have worked with.
  2. Do you wish not to work on support based applications
  3. How do you work on applications in maintenance phase. Typically what methodology you follow for development.
  4. How do you keep your clients updated about the progress of the work. How do you take care of client communication.
  5. What different RDBMS have you worked with?
  6. Difference you found working on SQL Server 2000 and SQL Server 2005.
  7. Difference you found working on SQL Server and Sybase
  8. Do you like to explore on newer technologies.
  9. Challenging situations encountered and approach used to handle it.


Round 4: (tiebreaker round. May not happen with everyone)
Questions:

  1. Which is the basemost type in .NET from which all other types derive? Ans: Object
  2. Can you name the members of this base type?
  3. Questions on few of these members.
  4. What is reference type and value type with respect to stack and heap datastructure usage in case of both? (Little tricky. I fumbled.)
  5. When do you pass reference type by reference?
  6. LINQ question (Simple one in my case). Given a scenario, write a LINQ query for it?
  7. What are iterators?
  8. Have you heard of extension methods? What are they?
  9. Write an extension method for one of the scenario?
  10. Where you save session data in case of out of process?
  11. How is data saved? (Serialized)
  12. Which type of serialization is used? (Binary serialization)
  13. What are webservices?
  14. Have you worked on patterns? (Fortunately only this much was asked in case of patterns but I will suggest you to understand MVP and MVC atleast.)
  15. Difference between ref and out?
  16. Can you assign some value to an out parameter? (I dont know the answer for this. If you find out. Let me also know.)
  17. What are anonymous methods?
  18. What are anonymous types?
  19. What is lamda expression?



Learning Mate Mumbai Interview Questions :

  • How MVC has been implemented in your project.
  • How to call CS function with JS.
  • Explain your project architechure.
  • What challenges have you faced in the project.
  • How to make different user controls interact with eachother with JS. e.g.: button on one UC populates a grid in another.

Synechron Interview Questions :


  1. What are the different methods exposed by object class?
  2. Which of them are virtual and why?
  3. Which method we can override?
  4. what are value types and reference types?
  5. when you write object obj = new obj() how the object are allocated?
  6. why value types are not allocated on heap?
  7. what are ref and out parameter?
  8. what are generics?
  9. can i call dispose in finalize?
  10. pseudocode for stack impl using generics?
  11. what are delegate and events?

intetface i1
{
   hello();
}
interface i2
{
  hello()
}
class A: i1,i2
{

                how to call interface i1 and i2 methods
}


  • what are extension mehods?
  • How extentions methods differ from inheritance?
  • what is garbage collection?
  • what are the genrations of GC?
  • How do we clear the unmaaged menory?(frechable queue)
  • what is singleton pattern? how do we do lazy instantiation on singleton
  • wats diff betn interface and abstract class?
  • wat are anonymous method?
  • whats diff bet skip and take in linq?
  • waht is concept of deffered execution in linq?
  • how to implement asyn delegate in the code and how to access the return value?
  • can abstract class inherit a interface?
  • what is application domain how it differes from process?
  • What is abc of wcf
  • what are diffrerent type of contract?
  • which security did u use in you proj?
  • for intranet application which security will you use?
  • what is throttling in wcf?
  • diffrence bet message and  tranport sec in wcf?
  • what is diff state mgm tech in asp.net?
  • which of them is most reliable?
  • Page life cycle?
  • what are diff typ of trigger?
  • wat are diff type of index?
  • what are type of func?
  • can i use insert and updte in fun?
  • Different type of joins
  • @@error
  • Transation in SQL
  • How do u create a procrdures in SQL
  • Types of stored proc?


Nomura Telephonic Interview questions :

About the project ... internal working ... mainly about the architecture

ASP.Net

  1. How has .Net evolved and what was the need for .Net
  2. Whats the different between .Net 1.1, 2.0 and 3.5
  3. Whats is the use of CLR CTS CLS (with examples for CTS and CLS), why is CTS, CLS so important to .Net
  4. Whats the use of MSIL
  5. Where can Interfaces be used (In what situation should you use Interfaces)
  6. Tell me the most exciting problem that you have solved yourself and how

Morgan Stanley - Mumbai screening (Telephonic) interview questions


  1. can static methods be overridden ?
  2. can we have private method in interface ..
  3. what is the Base of aspx...
  4. can we use Function in stored proc
  5. can we have multiple select in sp
  6. can we have multiple select in func
  7. can we use functions in where clause of an sp 
  8. File name extensions for various file types in ASP.Net (e.g. : .aspx, asmx, ...)

JP MORGAN CHASE JPMC ASP.Net INTERVIEW QUESTIONS and ANSWERS

ASP.Net INTERVIEW QUESTIONS and ANSWERS


  1. How the session works in asp.net ...
  2. How does reflection work ...
  3. Why wcf is used ...
  4. Order of events : uc>page>master
  5. diff in init and preinit ...
  6. How to fill a datagrid from a usercontrol ...
  7. Assembly versioning and signing diff.
  8. cookie sharing for multiple sites.
  9. Example of impersonation in web. What happens in case of winforms 
  10. SQL : select fifth highest sal
  11. Whats the diff between framework and Runtime (in terms of version) ...

DELOITTE ASP.Net INTERVIEW QUESTIONS and ANSWERS

 ASP.Net interview questions:


  1. Definition of encapsulation, inheritance and other OOPS concepts.
  2. Difference between HTML and webserver control.
  3. Difference between BRS and SRS.
  4. What are different methods exposed by DataAdapter.
  5. Difference between connected and disconnected architecture.
  6. What are different controls in asp.net
  7. Have you used NUnit.
  8. Have you used TFS, VSS.
  9. Write a class for Dataprovider.
  10. What is clustered and nonclusterd index which column is preferred for non clusterindex?
  11. What if I make the dropdown view state false ?
  12. What are the different state management techniques?

CAPGEMINI ASP.Net INTERVIEW QUESTIONS and ANSWERS

ASP.Net INTERVIEW QUESTIONS and ANSWERS :-

Windows Communication Foundation (WCF) questions:

1. Difference between web services and WCF?
2. Components of WCF?
3. What is End Point?
4. WCF Hosting types?
5. How many protocols can be used to access WCF?
6. What is WCF Binding?
7. What is WCF contract?
8. What are the transfer modes available?

Oops questions:

1. Features of Oops?
2. What do you understand by polymorphism and message passing?
3. Difference between overloading and overwriting?

C#.net questions

1. What is the use of private constructor and why to make constructor as private?
2. How to erase unmanaged code objects from memory?
3. What is the use of finalize() method?
4. Why to use GC.Collect() method?
5. How many catch blocks can be created after try block?
6. Can we put try without catch?
7. What is delegate?
8. What are anonymous methods?
9. What will happen if I call 5 times a single anonymous method?
10. What is shared classes?

ASP.net questions

1. What is impersonation?
2. How many securities provided by asp.net?
3. What is assembly?
4. Difference between assembly and namespaces?
5. What is strong name?
6. What do you meant by late binding?


Sql Server

1. Tell me types of logs generated by sql server?
2. How to perform exception handling in sql server?
3. If I had a before update trigger and I am updating trigger and table in same time what will happen?
4. Single line statement for copy the structure of table to another table?

150 LATEST ASP.NET Multiple Choice Questions and Answers pdf

Below are the list of top 150 asp.net Multiple objective type questions and answers pdf free download for experienced & freshers.

ASP.NET Multiple Choice Questions and Answers :-


    CLICK HERE FOR MCQS --------> ASP.NET MCQs


ASP.NET Multiple Choice Questions and Answers pdf free download

difference between ExecuteScalar and ExecuteNonQuery?

ANS:-  ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.

What are the components of ADO.NET?

ANS:-  The components of ADO.Net are Dataset, Data Reader, Data Adaptor, Command, connection.

What is the file extension of web service?

ANS:-  Web services have file extension .asmx..

What are the different types of cookies in ASP.NET?

ANS:-  Session Cookie – Resides on the client machine for a single session until the user does not log out.

Persistent Cookie – Resides on a user’s machine for a period specified for its expiry, such as 10 days, one month, and never.

Which namespaces are necessary to create a localized application?

ANS:-  System.Globalization

System.Resources.

difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?

ANS:-  In HtmlInputCheckBoxcontrol, multiple item selection is possible whereas in HtmlInputRadioButton controls, we can select only single item from the group of items.

Which data type does the RangeValidator control support?

ANS:-  The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.

What is the appSettings Section in the web.config file

ANS:-  The appSettings block in web config file sets the user-defined values for the whole application.

For example, in the following code snippet, the specified ConnectionString section is used throughout the project for database connection:

<em><configuration>
<appSettings>
<add key="ConnectionString" value="server=local; pwd=password; database=default" />
</appSettings></em>

List the major built-in objects in ASP.NET

ANS:-

Application
Request
Response
Server
Session
Context
Trace

List all templates of the Repeater control.

ANS:-  ItemTemplate
AlternatingltemTemplate
SeparatorTemplate
HeaderTemplate
FooterTemplate

How we can force all the validation controls to run?

ANS:-  The Page.Validate() method is used to force all the validation controls to run and to perform validation.

Differentiate strong typing and weak typing

ANS:-  In strong typing, the data types of variable are checked at compile time. On the other hand, in case of weak typing the variable data types are checked at runtime. In case of strong typing, there is no chance of compilation error. Scripts use weak typing and hence issues arises at runtime.

what is boxing and unboxing

ANS:-  Boxing is assigning a value type to reference type variable.

Unboxing is reverse of boxing ie. Assigning reference type variable to value type variable.

In which event are the controls fully loaded

ANS:-  Page load event.

How do you register JavaScript for webcontrols

ANS:-  We can register javascript for controls using <CONTROL -name>Attribtues.Add(scriptname,scripttext) method.

What are the asp.net Security Controls

ANS:-  <asp:Login>: Provides a standard login capability that allows the users to enter their credentials
<asp:LoginName>: Allows you to display the name of the logged-in user
<asp:LoginStatus>: Displays whether the user is authenticated or not
<asp:LoginView>: Provides various login views depending on the selected template
<asp:PasswordRecovery>:  email the users their lost password

What are the advantages of Passport authentication

ANS:-  All the websites can be accessed using single login credentials. So no need to remember login credentials for each web site.

Users can maintain his/ her information in a single location.

Explain the working of passport authentication?

ANS:-  First of all it checks passport authentication cookie. If the cookie is not available then the application redirects the user to Passport Sign on page. Passport service authenticates the user details on sign on page and if valid then stores the authenticated cookie on client machine and then redirect the user to requested page

What is MVC?

ANS:-  MVC is a framework used to create web applications. The web application base builds on  Model-View-Controller pattern which separates the application logic from UI, and the input and events from the user will be controlled by the Controller.

What is RedirectPermanent in ASP.Net?

ANS:-  RedirectPermanent Performs a permanent redirection from the requested URL to the specified URL. Once the redirection is done, it also returns 301 Moved Permanently responses.

How can we apply Themes to an asp.net application?

ANS:-  We can specify the theme in web.config file. Below is the code example to apply theme:

<configuration>

<system.web>

<pages theme="Windows7" />

</system.web>

</configuration>ed.

What is Cross Page Posting?

ANS:-  When we click submit button on a web page, the page post the data to the same page. The technique in which we post the data to different pages is called Cross Page posting. This can be achieved by setting POSTBACKURL property of  the button that causes the postback. Findcontrol method of PreviousPage can be used to get the posted values on the page to which the page has been posted.

Explain role based security ?

ANS:-  Role Based Security used to implement security based on roles assigned to user groups in the organization.

Then we can allow or deny users based on their role in the organization. Windows defines several built-in groups, including Administrators, Users, and Guests.

<AUTHORIZATION>< authorization >
< allow roles="Domain_Name\Administrators" / >   < !-- Allow Administrators in domain. -- >
< deny users="*"  / >                            < !-- Deny anyone else. -- >
< /authorization >

What is the difference between web config and machine config?

ANS:-  Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.

Can we have multiple web config files for an asp.net application?

ANS:-  Yes.

Which protocol is used to call a Web service?

ANS:-  HTTP Protocol

What are the event handlers that we can have in Global.asax file?

ANS:-  Application Events: Application_Start , Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed,  Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,
Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache

Session Events: Session_Start,Session_End

What is the good practice to implement validations in aspx page?

ANS:-  Client-side validation is the best way to validate data of a web page. It reduces the network traffic and saves server resources.

How can we prevent browser from caching an ASPX page?

ANS:-  We can SetNoStore on HttpCachePolicy object exposed by the Response object’s Cache property:

Response.Cache.SetNoStore ();
Response.Write (DateTime.Now.ToLongTimeString ());

Write code to send e-mail from an ASP.NET application?

ANS:-  MailMessage mailMess = new MailMessage ();
mailMess.From = "abc@gmail.com";
mailMess.To = "xyz@gmail.com";
mailMess.Subject = "Test email";
mailMess.Body = "Hi This is a test mail.";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send (mailMess);

MailMessage and SmtpMail are classes defined System.Web.Mail namespace.

What is Protected Configuration?

ANS:-  It is a feature used to secure connection string information.

Can we add code files of different languages in App_Code folder?

ANS:-  No. The code files must be in same language to be kept in App_code folder.

Is it possible to create web application with both webforms and mvc?

ANS:- Yes. We have to include below mvc assembly references in the web forms application to create hybrid application.

System.Web.Mvc

System.Web.Razor

System.ComponentModel.DataAnnotations

Can we have a web application running without web.Config file?

ANS:- Yes

List the events in page life cycle.

ANS:-

1) Page_PreInit
2) Page_Init
3) Page_InitComplete
4) Page_PreLoad
5) Page_Load
6) Page_LoadComplete
7) Page_PreRender
8)Render

Which type if caching will be used if we want to cache the portion of a page instead of whole page?

ANS:- Fragment Caching: It caches the portion of the page generated by the request. For that, we can create user controls with the below code:


1 <%@ OutputCache Duration="120" VaryByParam="CategoryID;SelectedID"%>

What are the different types of caching?

ANS:- ASP.NET has 3 kinds of caching :

Output Caching,
Fragment Caching,
Data Caching.

What is caching?

ANS:- Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file.

How you can add an event handler?

ANS:- Using the Attributes property of server side control.

e.g:
btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();")

What are the different Session state management options available in ASP.NET?

ANS:-In-Process
Out-of-Process.
In-Process stores the session in memory on the web server.

Out-of-Process Session state management stores data in an external server.  The external server may be either a SQL Server or a State Server.  All objects stored in session are required to be serializable for Out-of-Process state management.

How long the items in ViewState exists?

ANS:-They exist for the life of the current page.

Where the viewstate is stored after the page postback?

ANS:-ViewState is stored in a hidden field on the page at client side.  ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.

What is ViewState?

ANS:-ViewState is used to retain the state of server-side objects between page post backs.

Which validator control you use if you need to make sure the values in two different controls matched?

ANS:-Compare Validator control.

What are the different validators in ASP.NET?

ANS:-
Required field Validator
Range  Validator
Compare Validator
Custom Validator
Regular expression Validator
Summary Validator

From which base class all Web Forms are inherited?

ANS:-Page class.

difference between Server.Transfer and Response.Redirect?

ANS:-In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client’s browser.  This provides a faster response with a little less overhead on the server.  The clients url history list or current url Server does not update in case of Server.Transfer.

Response.Redirect is used to redirect the user’s browser to another page or site.  It performs trip back to the client where the client’s browser is redirected to the new page.  The user’s browser history list is updated to reflect the new address.

In which event of page cycle is the ViewState available?

ANS:-After the Init() and before the Page_Load().

What’s the use of Response.Output.Write()?

ANS:- We can write formatted output  using Response.Output.Write().

What is ASP.Net?

ANS:-It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.

150 [UPDATED] ASP.NET Interview Questions and Answers pdf

asp.net interview questions and answers list of top 150 latest frequently asked pdf free download for experienced & freshers.

ASP.NET Interview Questions and Answers :-

ASP.NET Interview Questions and Answers pdf free download for experienced freshers
ASP.NET Interview Questions
1. What is ASP.Net?


2. What’s the use of Response.Output.Write()?


3. In which event of page cycle is the ViewState available?


4. What is the difference between Server.Transfer and Response.Redirect?


5. From which base class all Web Forms are inherited?


6. What are the different validators in ASP.NET?


7. Which validator control you use if you need to make sure the values in two different controls matched?


8. What is ViewState?


9. Where the viewstate is stored after the page postback?


10. How long the items in ViewState exists?


ASP .net Interview Questions :


11. What are the different Session state management options available in ASP.NET?


12. How you can add an event handler?


13. What is caching?


14. What are the different types of caching?


15. Which type if caching will be used if we want to cache the portion of a page instead of whole page?


16. List the events in page life cycle.


17. Can we have a web application running without web.Config file?


18. Is it possible to create web application with both webforms and mvc?


19. Can we add code files of different languages in App_Code folder?


20. What is Protected Configuration?


21. Write code to send e-mail from an ASP.NET application?


22. How can we prevent browser from caching an ASPX page?


23. What is the good practice to implement validations in aspx page?


24. What are the event handlers that we can have in Global.asax file?


25. Which protocol is used to call a Web service?


26. Can we have multiple web config files for an asp.net application?


27. What is the difference between web config and machine config?


28.  Explain role based security ?


29. What is Cross Page Posting?


30. How can we apply Themes to an asp.net application?


31. What is RedirectPermanent in ASP.Net?


32. What is MVC?


33. Explain the working of passport authentication.


34. What are the advantages of Passport authentication?


35. What are the asp.net Security Controls?


36. How do you register JavaScript for webcontrols ?


37. In which event are the controls fully loaded?


38. what is boxing and unboxing?


39. Differentiate strong typing and weak typing


40. How we can force all the validation controls to run?


41. List all templates of the Repeater control.


42. List the major built-in objects in ASP.NET?


43. What is the appSettings Section in the web.config file?


44. Which data type does the RangeValidator control support?


45. What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?


46. Which namespaces are necessary to create a localized application?


47. What are the different types of cookies in ASP.NET?


48. What is the file extension of web service?


49. What are the components of ADO.NET?


50. What is the difference between ExecuteScalar and ExecuteNonQuery?


asp.net mcq questions and answers
asp.net objective questions and answers pdf
asp.net objective questions and answers

  • asp.net interview questions and answers


  1. asp.net interview questions and answers for freshers

asp.net objective questions
.net interview questions and answers
asp.net interview question
asp.net interview questions and answers for freshers pdf free download.basic asp.net interview questions and answers for freshers,asp.net interview questions and answers for freshers pdf,asp.net interview questions and answers pdf,asp.net interview questions and answers for experienced,asp.net tutorial,asp.net interview questions and answers for freshers pdf download,asp.net interview questions and answers for freshers,asp.net interview questions and answers for experienced,asp.net interview questions and answers pdf,asp.net interview questions and answers for experience,sql server interview questions and answers,asp.net interview questions and answers for 3 years experience,asp.net mvc interview questions and answers