Last Updated on Sunday, 9 March 2008 01:08 Written by EditorMonday, 10 December 2007 04:44

1) Can we have private constructor? when can I use them?

2) what is an internal specifier? what happens internally when I use access specifier Internal ?

3) DO we have inline function in C#? otherwise what is equivalent inline function in C#?

1. Explain the differences between Server-side and Client-side code?

ANS: Server side code will execute at server end all the business logic will execute at server end where as client side code will execute at client side at browser end.

2. What type of code (server or client) is found in a Code-Behind class?

ANS : Server side.

3. Should validation (did the user enter a real date) occur server-side or client-side? Why?

ANS : client side . there is no need to go to validate user input. If it relates to data base validation we need to validate at server side.

4. What does the “EnableViewState” property do? Why would I want it on or off?

ANS: IT keeps the data of the control during post backs.
if we turn off the values should not populate during server round trip.

5. What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

ANS: Server.Trnasfer will prevent round trip. it will redirect pages which or in the same directory. NO way to pass the query strings . Thru http context we can able to get the previous page control values.

Response.Redirect : There is a round trip to process the request. We can redirect to any page external / internal other than aspx. We can pass the query string thru which we can manage sessions.

6. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

ANS : Web services are best suite for Hetrogenious environment.
Remoting is best suite for Homogenious environment. The systems that under CLR.

7. Let’s say I have an existing application written using Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this
application to .NET

We need to have Wrapper to communicate COM components in .net. and vis versa

CCW : Com Callable wrapper.
RCW : RUN time callable wrapper.

8. Can you explain the difference between an ADO.NET Dataset and anADO Recordset?
ANS : DIsconnected architechure . Maintainace relation schemas. MUtilple table grouping.
Connected one .
9. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

ANS: APplication_start need for global variable which are available over the application.
Sesssion_Start : login dependent ( user dependent)

10. If I’m developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is
spanned across three web-servers (using round-robbin load balancing)
what would be the best approach to maintain login-in state for the

ANS : Database Support.
or Thru state service.

11. What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
ANS : ASP . Interprepter.. use the script engine.
ASP.Net Compiled.

12. How does VB.NET/C# achieve polymorphism?
ANS : Function overloading.
Operator overloading.
11. Can you explain what inheritance is and an example of when you might use it?

ANS : Heridity.
Use the existing functionality along with its own properities.

13. How would you implement inheritance using VB.NET/C#?
ANS: Derived Class : Basecalss
VB.NEt : Derived Class Inherits Baseclass
14. Whats an assembly
ANS : A Basic unit of executable code >

Which contains : Manifest – Meta data
versioning , Calture , IL, Reference

15. Describe the difference between inline and code behind – which is best in a loosely coupled solution

Tightly coupled – INLINE
ANS: inline function bind at compile time can write in aspx page with in <% %> .

17. Explain what a diffgram is, and a good use for one

ANS : is an xml grammer. it talk about state of node in xml file.

18. Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one

ANS: Preprocessing before going to IIS.

20. What are the disadvantages of viewstate/what are the benefits
ANS : IT can be hacked . page is size is heavy.

21 Describe session handling in a webfarm, how does it work and what are the limits

Session – mode
State sever

22. How would you get ASP.NET running in Apache web servers – why would you even do this?

ANS: —- Install Mod_AspDotNet
Add at the end of C:Program FilesApache GroupApache2confhttpd.conf the following lines

23. Whats MSIL, and why should my developers need an appreciation of it if at all?

ANS : Microsoft Intermeidate lanaguage. which is the out put for all the .net supported languages after comiplation will produce.
Appreciation for cross language support.

24. In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?
ANS : INIT, PageLoad, Prerender , UNload.

25. Which method do you invoke on the DataAdapter control to load your generated dataset with data?


26. Can you edit data in the Repeater control?

27. Which template must you provide, in order to display data in a Repeater control?

28. How can you provide an alternating color scheme in a Repeatercontrol?


29. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeatercontrol?


30. What base class do all Web Forms inherit from?


31. What method do you use to explicitly kill a user s session?


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

33. Which two properties are on every validation control?
control to validate, error message
34. What tags do you need to add within the asp:datagrid tags to bind
columns manually?
autogenerated columns is set to false
35. How do you create a permanent cookie?
Cooke = ne cookee().

36. What tag do you use to add a hyperlink column to the DataGrid?
hyper link column

37. What is the standard you use to wrap up a call to a Web service
38. Which method do you use to redirect the user to another page without performing a round trip to the client?
39. What is the transport protocol you use to call a Web service SOAP
40. True or False: A Web service can only be written in .NET
41. What does WSDL stand for? webservice description language. it is used to generate for proxy( server object)

42. What property do you have to set to tell the grid which page to go to when using the Pager object?
Page Index.

43. Where on the Internet would you look for Web services?
44. What tags do you need to add within the asp:datagrid tags to bind columns manually.

Auto generate columns

45. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?


46. How is a property designated as read-only?
47. Which control would you use if you needed to make sure the values in two different controls matched?
compare filed validator

48. True or False: To test a Web service you must create a windows application or Web application to consume this service?
49. How many classes can a single .NET DLL contain?

Post to Twitter

Submit Interview Questions at intr[at]freshershome.com


  1. vijayasree   |  Tuesday, 15 April 2008 at 6:59 am

    this is very useful

  2. nitesh   |  Monday, 25 August 2008 at 12:39 am

    interview question of c#

  3. Antony Kumar   |  Sunday, 15 February 2009 at 5:42 am

    please sen the .Net(ASP,VB) WITH SQL INTERVIEW Q&A.

  4. adi   |  Monday, 27 April 2009 at 2:32 am

    very good questions.

  5. Mohd Adeel   |  Thursday, 14 May 2009 at 2:05 am

    plz Sir Any can give me infrmationabout Call Centre Intrerview rounds and toppics n where i can give intervws in Lucknow. plz give infrmation fast thanku

  6. Piyush Rajput   |  Tuesday, 08 September 2009 at 6:27 am

    it’s very beneficial for me and for freshers.It’s a best work for us.

  7. pravs   |  Tuesday, 15 December 2009 at 9:27 am

    hai sir
    this information helps us a lot but i need some questions based on aptitude and reasoning which are asked in call centers then also some basic questoins relatedly to the interview.

  8. kishore   |  Tuesday, 12 January 2010 at 10:11 am


  9. sonu chaudhary   |  Friday, 22 January 2010 at 8:37 am

    plz more question ans in my mail id .

  10. prathiba   |  Friday, 26 March 2010 at 4:56 am

    thanks for that details…
    can u give me some more information about the subject..
    so that we can know more about the subject

  11. harsha   |  Tuesday, 30 March 2010 at 8:56 am


    i have done my diploma in .net now im in search of jobs i need these ASP.net,c#,sql serrver 2005 interview questions and answers.could u send it my email id mentioned above

  12. Ravi Singal   |  Tuesday, 13 April 2010 at 2:20 am

    You may try the below link get a job, or a web application, windows software

  13. Ravi Singal   |  Tuesday, 13 April 2010 at 2:20 am

    Yea You may try the below link get a job, or a web application, windows software

  14. shravan   |  Monday, 26 July 2010 at 3:32 am

    plz send me more question………………… plzzzzzzzzzzzzzzzz

  15. RANJANA PARIDA   |  Thursday, 29 July 2010 at 3:37 am

    hello sir,
    above questions are very useful.i am a fresher.can u send me some q/a related to vc#.net with sql interview q &a.

  16. ANITHA.PALERU   |  Saturday, 07 August 2010 at 5:53 am

    hi this is anitha..i completed my mca and i done the project based on .net if u dont mine send some interview questions to my mail

  17. Sakshi bansal   |  Wednesday, 18 August 2010 at 10:19 am

    sir pls send me important interview .net questions with answers on my emailid as soon as possible

  18. Abhishek   |  Sunday, 12 September 2010 at 3:26 am

    plz send the more question about c#…

  19. gaurav   |  Monday, 04 October 2010 at 3:18 am

    questions are very useful for me

  20. Anurag   |  Saturday, 20 November 2010 at 3:14 am

    thanx for these ques……
    pls mail me another set of ques ………

  21. Vicky kumar   |  Sunday, 28 November 2010 at 1:25 pm


    I am pursuing MCA (VI sem) i need these ASP.net,c#,sql serrver 2005 interview questions and answers.could u send it my email id mentioned above specially C# windows application related

  22. srinivas   |  Friday, 10 December 2010 at 6:03 am

    sir please send me another set of questions C#

  23. Amrita   |  Tuesday, 27 December 2011 at 12:26 pm

    send me interview question answer in c# and sql

  24. sakthivel.P   |  Monday, 22 October 2012 at 7:06 am

    Respected sir,

    Please send me freshers questions for asp.net with visual c#,MS sql2000

  25. sir plz send all .net interview question and answer on maill id   |  Tuesday, 27 November 2012 at 12:10 am

    hi i m vikash kumar fresher(b-tech)

  26. rupali   |  Thursday, 03 January 2013 at 11:50 pm

    Sir, please send me C# and ASP.NET interview question and answer on my email id

  27. vikas sharma   |  Monday, 28 January 2013 at 9:00 pm

    Sir, please send me all C# Dot Net interview question.

  28. Sumit khera   |  Sunday, 17 February 2013 at 3:39 pm

    how to subscribe for interview questions on mail.

  29. atul   |  Wednesday, 20 March 2013 at 6:10 pm

    need these question

Leave a Reply