Sie sind auf Seite 1von 48

ASP.

NET Interview Questions

This is a list of questions I have gathered and created over a period of time from my
experience, many of which I felt where incomplete or simply wrong. I have finally taken the
time to go through each question and correct them to the best of my ability. However, please
feel free to post feedback to challenge, improve, or suggest new questions. I want to thank
those of you that have contributed quality questions and corrections thus far.

There are some questions in this list that I do not consider to be good questions for an
interview. However, they do exist on other lists available on the Internet so I felt compelled to
keep them here for easy access.

1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the


page loading process.
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among
other things.When an ASP.NET request is received (usually a file with .aspx extension),
the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual
worker process aspnet_wp.exe.

2. What’s the difference between Response.Write()


andResponse.Output.Write()?
Response.Output.Write() allows you to write formatted output.

3. What methods are fired during the page load?


Init() - when the page is instantiated
Load() - when the page is loaded into server memory
PreRender() - the brief moment before the page is displayed to the user as HTML
Unload() - when page finishes loading.

4. When during the page processing cycle is ViewState available?


After the Init() and before the Page_Load(), or OnLoad() for a control.

5. What namespace does the Web page belong in the .NET Framework class
hierarchy?
System.Web.UI.Page

6. Where do you store the information about the user’s locale?


System.Web.UI.Page.Culture

7. What’s the difference between Codebehind="MyCode.aspx.cs"


andSrc="MyCode.aspx.cs"?
CodeBehind is relevant to Visual Studio.NET only.

8. What’s a bubbled event?


When you have a complex control, like DataGrid, writing an event processing routine
for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up
their eventhandlers, allowing the main DataGrid event handler to take care of its
constituents.

9. Suppose you want a certain ASP.NET function executed on MouseOver for


a certain button. Where do you add an event handler?
Add an OnMouseOver attribute to the button. Example:
btnSubmit.Attributes.Add("onmouseover","someClientCodeHere();");
10. What data types do the RangeValidator control support?
Integer, String, and Date.

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


Server-side code executes on the server. Client-side code executes in the
client's browser.

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


The answer is server-side code since code-behind is executed on the server. However,
during the code-behind's execution on the server, it can render client-side code such
as JavaScript to be processed in the clients browser. But just to be clear, code-behind
executes on the server, thus making it server-side code.

13. Should user input data validation occur server-side or client-side? Why?
All user input data validation should occur on the server at a minimum. Additionally,
client-side validation can be performed where deemed appropriate and feasable to
provide a richer, more responsive experience for the user.

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


would I choose one over the other?
Server.Transfer transfers page processing from one page directly to the next 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. Server.Transfer does not update the
clients url history list or current url. Response.Redirect is used to redirect the user's
browser to another page or site. This performas a 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.

15. Can you explain the difference between an ADO.NET Dataset and an ADO
Recordset?
Valid answers are:
· A DataSet can represent an entire relational database in memory, complete with
tables, relations, and views.
· A DataSet is designed to work without any continuing connection to the original data
source.
· Data in a DataSet is bulk-loaded, rather than being loaded on demand.
· There's no concept of cursor types in a DataSet.
· DataSets have no current record pointer You can use For Each loops to move
through the data.
· You can store many edits in a DataSet, and write them to the original data source in
a single operation.
· Though the DataSet is universal, other objects in ADO.NET come in different
versions for different data sources.

16. What is the Global.asax used for?


The Global.asax (including the Global.asax.cs file) is used to implement application
and session level events.

17. What are the Application_Start and Session_Start subroutines used for?
This is where you can set the specific variables for the Application and Session
objects.

18. Can you explain what inheritance is and an example of when you might use
it?
When you want to inherit (use the functionality of) another class. Example: With
a base class named Employee, a Manager class could be derived from the Employee
base class.

19. Whats an assembly?


Assemblies are the building blocks of the .NET framework. Overview of assemblies
from MSDN

20. Describe the difference between inline and code behind.


Inline code written along side the html in a page. Code-behind is code written in a
separate file and referenced by the .aspx page.

21. Explain what a diffgram is, and a good use for one?
The DiffGram is one of the two XML formats that you can use to render DataSet object
contents to XML. A good use is reading database data to an XML file to be sent to a
Web Service.

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


all?
MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get
converted to MSIL. MSIL also allows the .NET Framework to JIT compile the assembly
on the installed computer.

23. Which method do you invoke on the DataAdapter control to load your
generated dataset with data?
The Fill() method.

24. Can you edit data in the Repeater control?


No, it just reads the information from its data source.

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

26. How can you provide an alternating color scheme in a Repeater control?
Use the AlternatingItemTemplate.

27. What property must you set, and what method must you call in your code, in
order to bind the data from a data source to the Repeater control?
You must set the DataSource property and call the DataBind method.

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


The Page class.

29. Name two properties common in every validation control?


ControlToValidate property and Text property.

30. 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?
DataTextField property.

31. Which control would you use if you needed to make sure the values in two
different controls matched?
CompareValidator control.
32. How many classes can a single .NET DLL contain?
It can contain many classes.

Web Service Questions

1. What is the transport protocol you use to call a Web service?


SOAP (Simple Object Access Protocol) is the preferred protocol.

2. True or False: A Web service can only be written in .NET?


False

3. What does WSDL stand for?


Web Services Description Language.

4. Where on the Internet would you look for Web services?


http://www.uddi.org

5. True or False: To test a Web service you must create a Windows application
or Web application to consume this service?
False, the web service comes with a test page and it provides HTTP-GET method to
test.

State Management Questions

1. What is ViewState?
ViewState allows the state of objects (serializable) to be stored in a hidden field on the
page. ViewState is transported to the client and back to the server, and is not stored
on the server or any other external source. ViewState is used the retain the state of
server-side objects between postabacks.

2. What is the lifespan for items stored in ViewState?


Item stored in ViewState exist for the life of the current page. This includes postbacks
(to the same page).

3. What does the "EnableViewState" property do? Why would I want it on or


off?
It allows the page to save the users input on a form across postbacks. It saves the
server-side values for a given control into ViewState, which is stored as a hidden value
on the page before sending the page to the clients browser. When the page is posted
back to the server the server control is recreated with the state stored in viewstate.

4. What are the different types of Session state management options available
with ASP.NET?
ASP.NET provides In-Process and Out-of-Process state management. In-Process
stores the session in memory on the web server. This requires the a "sticky-server"
(or no load-balancing) so that the user is always reconnected to the same web server.
Out-of-Process Session state management stores data in an external data source. The
external data source may be either a SQL Server or a State Server service. Out-of-
Process state management requires that all objects stored in session are serializable.

posted on Tuesday, March 16, 2004 8:14 AM


Feedback

# re: Interview Questions: ASP.NET 6/1/2004 5:00 AM pinak


hey can anyone gimme some common basic questions on .net which can b expected in
interview. Plz consider that i'm just beginer in .net. You can mail me at
pinak222@yahoo.com. I'll b really thankfull to u ...
bye

# re: Interview Questions: ASP.NET 6/25/2004 11:08 PM thomas


hello friend

thankx for you questions.


the questions seems to be little bit tough, so if you have prilim questions for a beginner, could
you please send it to me.

with prayers..........................................thomas
thomasjames_code@yahoo.co.in

# re: Interview Questions: ASP.NET 7/1/2004 12:49 AM doubt


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

we can write client side code in code-behind calss like


button1.Attributes.Add("onMouseOver", "window.open('webform1.aspx')")

pls help me

# re: Interview Questions: ASP.NET 7/1/2004 12:44 PM Mark Wagner


You are correct. You can write dynamically created client-side code in the code-behind class
just as you have shown in your example. I understand your question and believe you have a
good point. However, I would argue the code-behind class should still be considered "server-
side" code since that is where it is executing. Client-side code does not execute in the code-
behind, it is simply text or data, not really code and is treated as such in the code-behind.

Your (excellent) example demonstrates the power of ASP in that a developer can dynamically
create HTML, XML, or even Javascript in the code-behind. As you have pointed out, this
dynamically generated code would execute on the client-side.

In short, you are correct in your assessment and appear to be able to intelligently answer this
question should you encounter it in an interview. Great question!

# re: Interview Questions: ASP.NET 7/3/2004 10:36 AM Yasser


Hi,

This is in response to Question 12, validation should occur on client side and server side both.
Client side should happen to avoid server round trip, but it's easily possible to by-pass client
side validation. Say if someone has turned of javascript in her browser or if the browser is not
supporting javascript? In that scenario client side validation will not work. Hence if the
validation is also done on server than such scenario can be avoided. The rule is whether
validation occurs on client or not, but it should always occur on server.
# re: Interview Questions: ASP.NET 7/5/2004 10:26 PM Vivek Kumbhojkar
This article is realyy good for beginners..

Excellent article

Vivek

# re: Interview Questions: ASP.NET 7/16/2004 11:00 PM vishal wadhawan


This is a real good stuff.I liked it very much and i'll refer it to every fresher.

# re: Interview Questions: ASP.NET 7/20/2004 3:02 AM Rohit Kalia


This is in response to Question 14 : What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

server.transfer simply transfer execution to another page. this doesn't require any information
to be sent to the browser== it all occurs on the server without the user's knowledge.
The response.redirect method sends http information to the browser instructing it to go to
another page.

rohitkalya@yahoo.com

# re: Interview Questions: ASP.NET 7/29/2004 11:31 AM Mukti ranjan


It's very very useful for interview purpose. thanks for this good did.

# re: Interview Questions: ASP.NET 7/29/2004 11:07 PM vishal


hi all
I,m working in NIC .it's a very good question for all freshers who really want about the .net

# re: Interview Questions: ASP.NET 8/5/2004 12:01 AM sandy


hi all,
i think these questions r very much useful for freshers,but it will be more useful if u provide
more questions on this topic
bye to all
sandy

# re: Interview Questions: ASP.NET 8/5/2004 9:05 PM Akhil Bhandari


Good Stuff!!

Flood it with more....

# re: Interview Questions: ASP.NET 8/8/2004 11:04 PM Fahad Khalil


Hi

About question 12... the validation on client side. Yes, one should perform the validation on
client side... but as they say, *never trust your client, specially thin*.

So always perform validation on client side, try to save atleast one trip. If client is not messing
with the HTML, then he is doing a favor on himself. If he is messing, let him waste his own
band width.

To check whether all the validors on a page validate into *true*, before performing business,
you better should do...

Page.IsValid

or if you want to perform validation for a particular validator, just do...

FieldValidator.IsValid.

Hope this helps :)

mEEEEEEEEEEEEEEE!!!!!!!

# re: Interview Questions: ASP.NET 8/11/2004 12:04 PM swapna


could any one pls send me imp questions in .Net,ASP.Net,Sqlserver 2000
mail me on jara_gala@yahoo.com
thanks in advance

# re: Interview Questions: ASP.NET 8/16/2004 2:43 AM pradeep


The Questions are really great.

Thank you.

# re: Interview Questions: ASP.NET 8/16/2004 4:56 AM suresh


Question are good enough for a fresher.

# re: Interview Questions: ASP.NET 8/18/2004 9:36 AM Sergey


Most questions are good, but asking about property names or tag names has no benefit
whatsoever. Why would I memorize them if I have intellisence and MSDN library? Rather
concentrate on questions about general programming knowledge and understanding of
ASP.NET concepts such as request/response, processing pipelines and code-behind.

# re: Interview Questions: ASP.NET 8/18/2004 10:08 AM Mark Wagner


I agree Sergey.

# re: Interview Questions: ASP.NET 8/19/2004 12:28 PM RKA


Good for Interview point of view, but require more additional question in practicle.

# re: Interview Questions: ASP.NET 9/2/2004 11:16 PM sarvjeet


Thats really nice

# re: Interview Questions: ASP.NET 9/6/2004 2:54 AM Senthil Kumaran


Yeah nice questions u have it here. But still towards OOPS concept and their implementation
will do better

mail me @ senthilkumaranz@rediffmail.com I do have some questions.........

Ever Loving,
R. Senthil Kumaran

# re: Interview Questions: ASP.NET 9/7/2004 3:52 AM Ravi Nagaraj


Its indeed a good article. Please if you find any interview questions for Beginner in ASP.net
please mail it to evanirn@yahoo.com
Thanks
Ravi Nagaraj

# re: Interview Questions: ASP.NET 9/7/2004 5:38 AM Ravi


Its real good Information.
Thanks

# re: Interview Questions: ASP.NET 9/17/2004 10:20 AM Niveditha


Hi

The questions and answers in this article are quite useful


in an interview.
But i am not satisfied by the answer to
Q No.14. What is the difference between Server.Transfer and Response.Redirect? Why would I
choose one over the other?

My answer will be
The Response .Redirect () method can be used to redirect the browser to specified url,
pointing to any resource and may contain query strings and causes an extra roundtrip

Server.Transfer() performs server side redirection of the page avoiding extra roundtrip.

Server.Transfer() is preferred over Response.Redirect to avoid rountrip but the limitation is the
aspx page should reside on same web server.

# re: Interview Questions: ASP.NET 9/27/2004 12:52 PM Rakesh M


Naithani
The Questions are really helpful for all of us and design as if we are at test.

Thank you.

# re: Interview Questions: ASP.NET 10/2/2004 9:00 PM anil


sir very good

# re: Interview Questions: ASP.NET 10/4/2004 8:57 PM SS


Very useful article.Thanks for spending the time to come up with such an article.Would really
appreciate more questions regding general asp.net & OOP concepts...

# re: Interview Questions: ASP.NET 10/5/2004 1:33 PM jag


tuelly remarkable

# ASP.NET Interview Q&A 10/8/2004 9:25 AM roux mohammed


1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading
process.
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other
things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI
filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process
aspnet_wp.exe.
2. What’s the difference between Response.Write() andResponse.Output.Write()?
The later one allows you to write formattedoutput.
3. What methods are fired during the page load?
Init() - when the pageis instantiated
Load() - when the page is loaded into server memory
PreRender() - the brief moment before the page is displayed to the user asHTML,
Unload() - when page finishes loading.
4. Where does the Web page belong in the .NET Framework class hierarchy?
System.Web.UI.Page
5. Where do you store the information about the user’s locale?
System.Web.UI.Page.Culture
6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
CodeBehind is relevant to Visual Studio.NET only.
7. What’s a bubbled event?
When you have a complex control, like DataGrid, writing an event processing

# re: Interview Questions: ASP.NET 10/8/2004 10:47 AM Mark Wagner


Roux,

Excellent questions. I will "eventually" add them to the main list above.

Thanks!

# re: Interview Questions: ASP.NET 10/10/2004 6:33 PM santhosh chary


hi
iam fresher, addemding interviews.any one can send me faqs,maninly on oops concept,web
services/remoting,security and windows services

# re: Interview Questions: ASP.NET 10/14/2004 1:29 AM Erik Lane


Great stuff along with your others too.

# re: Interview Questions: ASP.NET 10/15/2004 5:22 AM satyan


Thanks ,

Help every one to reach their Dream Job .


# re: Interview Questions: ASP.NET 10/21/2004 11:36 PM Horatiu Cristea
Sergey,
you know there is a point in asking about proprety names and tag names :)
knowing those answers, could prove the interviewed person that he has worked with that
stuff, not just theoreticaly knowledge. For example what is the difference between visibility
and display styles for a html tag?

but what iritates me at intervies and tests is that there are companies that give you as test a
small project to do. This has no relevance in my point of view. instead i prefer to test the
coding skill on paper. i usualy ask the person to write me on paper a snippet of code of 5-10
lines of code.

# re: Interview Questions: ASP.NET 11/7/2004 11:13 PM mouli


very good

# re: Interview Questions: ASP.NET 11/13/2004 9:03 PM kris

ASP.NET Interview Questions

1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading


process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among
other things.When an ASP.NET request is received (usually a file with .aspx extension),the
ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process
aspnet_wp.exe.

2. What’s the difference between Response.Write() andResponse.Output.Write()? The latter


one allows you to write formattedoutput.

3. What methods are fired during the page load? Init() - when the pageis instantiated, Load()
- when the page is loaded into server memory,PreRender() - the brief moment before the page
is displayed to the user asHTML, Unload() - when page finishes loading.

4. Where does the Web page belong in the .NET Framework class
hierarchy?System.Web.UI.Page

5. Where do you store the information about the user’s locale? System.Web.UI.Page.Culture

6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?


CodeBehind is relevant to Visual Studio.NET only.

7. What’s a bubbled event? When you have a complex control, like DataGrid, writing an event
processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can
bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its
constituents.

8. Suppose you want a certain ASP.NET function executed on MouseOver overa certain button.
Where do you add an event handler? It’s the Attributesproperty, the Add function inside that
property. So btnSubmit.Attributes.Add("onMouseOver","someClientCode();")

9. What data type does the RangeValidator control support? Integer,String and Date.

10. Explain the differences between Server-side and Client-side code? Server-side code runs
on the server. Client-side code runs in the clients’ browser.
11. What type of code (server or client) is found in a Code-Behind class? Server-side code.

12. Should validation (did the user enter a real date) occur server-side or client-side? Why?
Client-side. This reduces an additional request to the server to validate the users input.

13. What does the "EnableViewState" property do? Why would I want it on or off? It enables
the viewstate on the page. It allows the page to save the users input on a form.

14. What is the difference between Server.Transfer and Response.Redirect? Why would I
choose one over the other? Server.Transfer is used to post a form to another page.
Response.Redirect is used to redirect the user to another page or site.

15. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
· A DataSet can represent an entire relational database in memory, complete with tables,
relations, and views.
· A DataSet is designed to work without any continuing connection to the original data source.
· Data in a DataSet is bulk-loaded, rather than being loaded on demand.
· There's no concept of cursor types in a DataSet.
· DataSets have no current record pointer You can use For Each loops to move through the
data.
· You can store many edits in a DataSet, and write them to the original data source in a single
operation.
· Though the DataSet is universal, other objects in ADO.NET come in different versions for
different data sources.

16. Can you give an example of what might be best suited to place in the Application_Start
and Session_Start subroutines? This is where you can set the specific variables for the
Application and Session objects.

17. If I’m developing an application that must accommodate multiple security levels though
secure login and my ASP.NET web application is spanned across three web-servers (using
round-robin load balancing) what would be the best approach to maintain login-in state for the
users? Maintain the login state security through a database.

18. Can you explain what inheritance is and an example of when you might use it? When you
want to inherit (use the functionality of) another class. Base Class Employee. A Manager class
could be derived from the Employee base class.

19. Whats an assembly? Assemblies are the building blocks of the .NET framework. Overview
of assemblies from MSDN

20. Describe the difference between inline and code behind. Inline code written along side the
html in a page. Code-behind is code written in a separate file and referenced by the .aspx
page.

21. Explain what a diffgram is, and a good use for one? The DiffGram is one of the two XML
formats that you can use to render DataSet object contents to XML. For reading database data
to an XML file to be sent to a Web Service.

22. Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the
Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.

23. Which method do you invoke on the DataAdapter control to load your generated dataset
with data? The .Fill() method

24. Can you edit data in the Repeater control? No, it just reads the information from its data
source

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

26. How can you provide an alternating color scheme in a Repeater control? Use the
AlternatingItemTemplate

27. 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 Repeater control? You must set the DataSource
property and call the DataBind method.

28. What base class do all Web Forms inherit from? The Page class.

29. Name two properties common in every validation control? ControlToValidate property and
Text property.

30. What tags do you need to add within the asp:datagrid tags to bind columns manually? Set
AutoGenerateColumns Property to false on the datagrid tag

31. What tag do you use to add a hyperlink column to the DataGrid?

32. What is the transport protocol you use to call a Web service? SOAP is the preferred
protocol.

33. True or False: A Web service can only be written in .NET? False

34. What does WSDL stand for? (Web Services Description Language)

35. Where on the Internet would you look for Web services? (http://www.uddi.org)

36. 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? DataTextField property

37. Which control would you use if you needed to make sure the values in two different
controls matched? CompareValidator Control

38. True or False: To test a Web service you must create a windows application or Web
application to consume this service? False, the webservice comes with a test page and it
provides HTTP-GET method to test.

39. How many classes can a single .NET DLL contain? It can contain many classes.
# re: Interview Questions: ASP.NET 11/17/2004 3:47 AM Sharad
Hi I am Working in Hanu Software Systems . It will be
Good If u also Provide all the quetions through topic wise

# re: Interview Questions: ASP.NET 11/17/2004 3:47 AM Sharad


Hi I am Working in Hanu Software Systems . It will be
Good If u also Provide all the quetions through topic wise

# re: Interview Questions: ASP.NET 11/18/2004 10:30 PM arati


its very nice to have such a website, Its good if u provide topicwise questions

# re: Interview Questions: ASP.NET 11/22/2004 10:48 PM Senthilkumar


Thirukkami
Hi,

Questions listed in the articles sounds good. I am adding more to the above mentioned list. As
many opted for some basics in .NET.

1) What is CLS (Common Language Specificaiton)?


It provides the set of specificaiton which has to be adhered by any new language writer /
Compiler writer for .NET Framework. This ensures Interoperability. For example: Within a
ASP.NET application written in C#.NET language, we can refer to any DLL written in any other
language supported by .NET Framework. As of now .NET Supports around 32 languages.

2) What is CTS (Common Type System)?


It defines about how Objects should be declard, defined and used within .NET. CLS is the
subset of CTS.

3) What is Boxing and UnBoxing?


Boxing is implicit conversion of ValueTypes to Reference Types (Object) .
UnBoxing is explicit conversion of Reference Types (Object) to its equivalent ValueTypes. It
requires type-casting.

4) What is the difference between Value Types and Reference Types?


Value Types uses Stack to store the data where as the later uses the Heap to store the data.

5) What are the different types of assemblies available and their purpose?
Private, Public/shared and Satellite Assemblies.

Private Assemblies : Assembly used within an application is known as private assemblies

Public/shared Assemblies : Assembly which can be shared across applicaiton is known as


shared assemblies. Strong Name has to be created to create a shared assembly. This can be
done using SN.EXE. The same has to be registered using GACUtil.exe (Global Assembly
Cache).

Satellite Assemblies : These assemblies contain resource files pertaining to a locale


(Culture+Language). These assemblies are used in deploying an Gloabl applicaiton for
different languages.

6) Is String is Value Type or Reference Type in C#?


String is an object (Reference Type).
More to come....

Thanks & Regards,


Senthilkumar.Thirukkami
senthil_kumart@yahoo.com

# re: Interview Questions: ASP.NET 11/26/2004 3:29 AM Omendra


Hi all.This is very good u provide guide like this.
Omendra

# re: Interview Questions: ASP.NET 11/27/2004 12:08 AM sivamohanreddy


Please give me description about
the difference between Codebehind and Src

this is very urgent

# re: Interview Questions: ASP.NET 11/29/2004 6:06 AM Venkatajalapathi


Good Job, this questions is very useful for beginners.

# re: Interview Questions: ASP.NET 12/3/2004 10:19 PM Narendra Singh


This is nice to have such questions on net. Its really
helpful.

# re: Interview Questions: ASP.NET 12/5/2004 4:47 AM Niks


Good set of questions.

I feel the difference between "src" and "code behind" tag can be better explained from the
deployment perspective.
When "code behind" tag is used, ASP.NET expects the precompiled dll on the server. When
"src" tag is used the code behind is converted to MSIL just in time. Then it does not expect the
pre-compiled DLL. So directly the .cs (if C# is used) can be deployed on the server.
For further details Microsift msdn help - Knowledge base can be looked.

# re: Interview Questions: ASP.NET 12/16/2004 3:02 AM binay


hello can anyone provide me some common basic questions on .net which can b expected in
interview.
consider me as a beginner. pls do mail me with Ans.
at sharmabinay@indiatimes.com.
I'll b really thankfull to u ...
bye

# re: Interview Questions: ASP.NET 12/16/2004 3:29 AM hemant sudehely


this is too much helpful, so thaks for this and continue and if i can contribute than how can.

# re: Interview Questions: ASP.NET 12/16/2004 7:06 AM Sahana


Can anyone give interview quesions about OOP and c#

# re: Interview Questions: ASP.NET 12/16/2004 10:08 AM Shriram


Nimbolkar
These are really very good Q & A and those helped me a lot!

# re: Interview Questions: ASP.NET 12/18/2004 6:01 AM R J Singh

Thanks for you questions.

Can u send me some more quetion on asp.net and C#.

My Email id is ramjanm@gmail.com

Regrads & Thanks

R J Singh

# re: Interview Questions: ASP.NET 12/20/2004 1:34 AM Subhajit Biswas


This is excellent !! would certainely expect something more..

subhajit.biswas@gmail.com

# re: Interview Questions: ASP.NET 12/20/2004 5:17 AM P.K.MANIKANDAN


Thanks for you questions.

Can u send me some more quetion on asp.net and C#.

My Email id is pk_manikandan@rediffmail.com

Regrads & Thanks

P.K.MANIKANDAN

# re: Interview Questions: ASP.NET 3/11/2005 12:21 PM Developer in


Seattle
Someone posts a great article, and the feedback thread is littered with requests for more help.
Are you guys idiots? Why should anyone take time out of their day to send you anything?

# re: Interview Questions: ASP.NET 3/14/2005 2:00 AM deepak


these question r not enough for interview plz add more question and mail me
accesdipak@rediffmail.com

# re: Interview Questions: ASP.NET 3/14/2005 2:00 AM deepak


these question r not enough for interview plz add more question and mail me
accesdipak@rediffmail.com

# re: Interview Questions: ASP.NET 3/15/2005 2:13 AM Santhosh


Hi All,

The questions published are good.


I would like to refer a website which contains the basic questions and answers on .net

http://www.andymcm.com/dotnetfaq.htm

regards,
Santhosh.

# re: Interview Questions: ASP.NET 3/17/2005 11:27 PM Giribabu.T


Dear friends,
U can send Interview model papers on this, If u have any. If u do so, i am very thankfull to u.
If it is possible to u u can mail me: giri_chinna27@yahoo.co.in

# re: Interview Questions: ASP.NET 3/21/2005 12:10 AM s kotteeswaran


sir,
please give some Asp.Net Interview Questions
it is usefull for me.plz send my url.
Thank you
s.kotteeswaran

# New questions from today! 3/21/2005 7:17 PM Bork, James Bork.


1. What is the user in an asp.net application?

2. How can you unload an asp.net app without touching the iis?

3. What is "delegation" in c# ?

4. in a load balancing environment, which way you choose to maintain state info, if security is
important?

5. What is the life cycle of an asp.net page? (events, from start to end)

6. What command line tools do we have in .net environment?

7. What is the plugin architecture? how to use it?

That's it for today, see if you have answers...

# re: Interview Questions: ASP.NET 3/22/2005 6:34 AM Rathi


Hello sir,

Can u send me some more asp.net and vb.net interview questions with answers
my emailid is rathi_balu2004@yahoo.com

Thank you,
B.sharu

# re: Interview Questions: ASP.NET 3/22/2005 11:34 PM Dhruv goyal


it's great help . thnx for all these ...
but better if some question related to praticle situation can come..
thnx

# re: Interview Questions: ASP.NET 3/28/2005 4:37 AM sprakash

Can u send me some more asp.net and vb.net interview questions with answers
my emailid is prak_smile@yahoo.co.in
Thank you,
sprakash

# re: Interview Questions: ASP.NET 3/28/2005 9:38 AM Venkataramana


Alladi
1. What is the purpose of XSLT other than displaying XML contents in HTML?

2. How to refresh a static HTML page?

3. What is the difference between DELETE and TRUNCATE in SQL?

4. How to declare the XSLT document?

5. What are the data Islands in XML?

6. How to initialize COM in ASP?

7. What are the deferences of DataSet and ???

8. What are the cursers in ADO?

9. What are the in-build components in ASP?

10. What are the Objects in ASP?

Can any body send more ASP.net questions to rampurni@yahoo.com

# MCAD question Bank 4/2/2005 4:07 AM ToLearn


Please give sites or links containing MCAD questions and answers.Please mail it to
tolearnall@yahoo.co.in or
tolearn@all.com
# re: Interview Questions: ASP.NET 4/4/2005 10:12 PM jagadeesh
This is a real good stuff. I liked it very much and i'll refer it to every fresher.

# re: Interview Questions: ASP.NET 4/6/2005 11:19 AM SANDEEP KUMAR


GUPTA
Excellent ! Really these questions will be very beneficial for freshers. I like these very much
and hope you will send these type important question on my E-mail.
E-mail :- sandeep_gupta8sep@rediffmail.com

# re: Interview Questions: ASP.NET 4/7/2005 8:29 AM ravi kumar


Excellent ! Really these questions will be very HELPFUL for freshers. pl.send these type
important question on my E-mail.
E-mail :- ravikumarkolla@rediffmail.com

# re: Interview Questions: ASP.NET 4/9/2005 9:56 PM armugam


I want interview question on asp.net, c#

# re: Interview Questions: ASP.NET 4/16/2005 3:38 AM


vnvskumar@yahoo.com
Questions are good.

# re: Interview Questions: ASP.NET 4/18/2005 3:12 AM praveen


these questions are extremely fantastic.as a fresher like me, these are very helpful.I like these
very much and hope you will send these type important question on my E-mail.

# re: Interview Questions: ASP.NET 4/18/2005 3:22 AM Deepu


I like these very much and hope you will send these type important question on my E-mail.

# Interview Questions: ASP.NET 4/19/2005 9:53 PM inder


Excellent ! Really these questions will be very beneficial for freshers. I like these very much
and hope you will send these type important question on my E-mail.
E-mail :- indradeochaurasiya@rediffmail.com

# re: Interview Questions: ASP.NET 4/19/2005 9:55 PM inder


Excellent ! Really these questions will be very beneficial for freshers. I like these very much
and hope you will send these type important question on my E-mail.
E-mail :- indradeochaurasiya@rediffmail.com

# re: Interview Questions: ASP.NET 4/20/2005 5:59 AM Santhosh


Hi all,

Can anyone provide me some common questions on ASp.net which can be expected in
interview.
consider me as a beginner. pls do mail me with Ans.

It will be very helpfull for my preparations

My email id is get2santy@yahoo.com

# re: Interview Questions: ASP.NET 4/21/2005 9:08 PM Ravi Bais


Excellent ! Really these questions will be very beneficial for all. I like these very much and
hope you will send these type important question on my E-mail.
E-mail :- bais.ravi@gmail.com

# re: Interview Questions: ASP.NET 4/22/2005 8:45 PM Saravanan


Really i am satiesfied with this notes
i like this site shuld continue thier service

# re: Interview Questions: ASP.NET 4/29/2005 10:19 PM Bindu


1.Using ADO.NET Datareader a user extracted data from a database table
having 5 records.What happens if another user adda 5 more
records to the table same time.Can the first user extracted records
become 10 instead of 5 or will it remain same 5?
what about same case when ADO ? pls explain in detail.

2. Using ADO.NET Datareader a user extracts data from a database table


having 1000 rows.He closed his browser in between.
that is after fetching only 50 records.
What happens to the Datareader?will it remain connected?
and will fetch 1000 records and what after?
will garbage collector collect and dispose it soon?

3. A user fetched dtata from a database table


using Dataset(Disconnected records) for updation.
Another user deleted the table just after.
what happens when the first user try to update the table after changes? Error or Something
else?

4. What are different types of assemblies in ASP.NET?

5.where is session id stored in ASP? in IIS aerver or ASP Engine?

# re: Interview Questions: ASP.NET 5/2/2005 9:07 AM Ishanth


I really appreciate this piece of work. At the same time i support comments from "Developer in
Seattle". Instead of asking your personal copies of the documents why dont you come and
visit this link again and copy the entire contents into a document.
I'm not able to understand why are they demanding for spoonfeeding??

btw i'd like to share some more links which might help people who are in search of .NET
questions.

http://www.hanselman.com/blog/PermaLink.aspx?guid=2d2fae59-a589-4c43-b6a5-b6
ebc1a9eafd
http://www.techinterviews.com/?p=193

# re: Interview Questions: ASP.NET 5/2/2005 10:08 PM alin


I really appreciate this answers. You are doing so great job here. Thank you so much.

# re: Interview Questions: ASP.NET 5/3/2005 4:25 AM Vijay


here are few more....

http://www.geekinterview.com

# re: Interview Questions: ASP.NET 5/4/2005 11:12 AM dan


When designing an ASCX control is it good practice to use read from the viewstate in onload
event of the control? Why or Why not.

answer: Its not good practice because if the control is loaded in page_load by use of
LoadControl() it will not see any of its own viewstate in onload. So if there is a textbox on the
ascx that the control needs it will not be able to see the postback data.

onload
{
string temp = textbox1.text
}

temp = ""

At the end of the onload event it will sync back up with viewstate. So in any of the userfired
events it will have the correct values.

Also anything that is not named or loaded global must be loaded before it will respond to
events on the pages round trip.

If the control is named in the html portion it will have its viewstate synced already in
pageload.

# re: Interview Questions: ASP.NET 5/7/2005 12:28 AM syed anwar ali


A nice piece of work.

# re: Interview Questions: ASP.NET 5/10/2005 1:14 AM abcd


hmm fine
# re: Interview Questions: ASP.NET 5/11/2005 5:06 AM Yogi_virgin

thanks buddy !!!!!!!!!!!!!

# re: Interview Questions: ASP.NET 5/11/2005 5:31 AM mayur


hi it is gr8 & very helpful 4 me

# re: Interview Questions: ASP.NET 5/11/2005 9:10 AM Mukesh Kumar


I wants more interviews Question on asp.net, controls

# re: Interview Questions: ASP.NET 5/11/2005 9:17 PM Jaineesh


Pleae send me more latest questions About ASP.Net.

Thanking you,

Yours sincerely,

Jaineesh

# re: Interview Questions: ASP.NET 5/11/2005 9:22 PM Jaineesh


Please send me good more questions about ASP.Net on jaineeshthakur@homtail.com

Thanking you,

Yours sincerely,

Jaineesh

# re: Interview Questions: ASP.NET 5/17/2005 4:29 AM Ravi Goyal


i am new to ASP.NET please guide me how to approch to learn asp.net send me more
questions also.

i will be very thankful of you.


Regards

Ravi Goyal

# re: Interview Questions: ASP.NET 5/17/2005 5:36 AM Vivek Harne


Hi all,

I want the ASP.Net interview question and examples urgently.


please forword it on my email-id.

vivek_harne@rediffmail.com
Vivek Harne

# re: Interview Questions: ASP.NET 5/19/2005 4:59 AM rojali


thanx fpr the questions.

# re: Interview Questions: ASP.NET 5/22/2005 10:15 PM Vivek sharma


Hi all,

I want the ASP.Net interview question and examples urgently.


please forword it on my email-id.
These responses r really very satisfactory.
Thank you.

# re: Interview Questions: ASP.NET 5/22/2005 10:34 PM P.Durga Rao


Hi
I need the Questions mainly asked in WebServices and Remoting.
Thanks

# re: Interview Questions: ASP.NET 5/22/2005 10:34 PM P.Durga Rao


Hi
I need the Questions mainly asked in WebServices and Remoting.
Thanks

# re: Interview Questions: ASP.NET 5/22/2005 10:34 PM P.Durga Rao


Hi
I need the Questions mainly asked in WebServices and Remoting.
Thanks

# re: Interview Questions: ASP.NET 5/24/2005 1:31 PM RAJU


Hi all,

I need the frequently asked interview questions on asp.net, C#, webservices and remoting.
Please send to my email id. subramaniam3007@hotmail.com

it will be very helpful to me.

Thanks

# re: Interview Questions: ASP.NET 5/24/2005 10:24 PM renju

Can u send me some more .net and ASP.NET interview questions with answers
my emailid is kuttumalu@gmail.com
Thank you, renju

# re: Interview Questions: ASP.NET 5/26/2005 2:32 PM Ram


How many "cache" statements can we have in "try" block in C#?
# re: Interview Questions: ASP.NET 5/26/2005 7:58 PM KS
Does anyone know about any job openings for ASP.NET

# re: Interview Questions: ASP.NET 5/27/2005 12:16 AM Venkatesh


Please send me the interview questions in ASP.NEt and C#.

# re: Interview Questions: ASP.NET 5/27/2005 10:51 PM Harish gopinath


Hi,

Please send me some VB.Net based questions. Please send it to harish@sampatti.com

Regards,
Harish

# re: Interview Questions: ASP.NET 5/29/2005 6:33 AM Ramakant Singh


Dear Sir,

I need the frequently asked interview questions and answer on VB.Net, ASP.Net, C#. Please
send to my email id. ramakant_1352@rediffmail.com.

It will be very helpful to me.

Regards,
Ramakant Singh

# re: Interview Questions: ASP.NET 5/29/2005 10:44 PM santhosh


Dear Sir,

I need the frequently asked interview questions and answer on VB.Net, ASP.Net, C#. Please
send to my email id. santhosh_reddy8@yahoo.com.

# re: Interview Questions: ASP.NET 5/31/2005 5:53 AM Manjunath


Hi,

Can have some more basic as well as advanced questions?


Please send them to manjunathhk@gmail.com.

Thanks in advance.

# re: Interview Questions: ASP.NET 6/1/2005 2:10 AM Siva


Nice Job.

If somebody have asp.net and vb.net interview questions and answers, pls send it to
rskshiva@rediffmail.com.

Thanks,
Siva R

# re: Interview Questions: ASP.NET 6/1/2005 10:05 AM Raja Sekhar


Excellent Stuff. Thanks a lot.
I have a question how state management is done in a webfarm or webgarden.
I mean how a session will travel from one web server to another web server?
Thanks in advance Raja

# re: Interview Questions: ASP.NET 6/3/2005 10:23 PM Diwakar Sharma


Grrrrrrrrrrrrrr8

# Interview Questions: ASP.NET 6/6/2005 1:07 AM N.S.Jenkins


Hai friends
I want webservices Question .Net with c#

Please Send it in jenkinsns@rediffmail.com

# re: Interview Questions: ASP.NET 6/7/2005 6:11 AM Pavan Kumar


Devangam.
hi friends/brothers n sisters,

i am new to c#.net. plz send me the frequently asked interview questions and plz guide to get
through some good company where i can explore my knowledge in .net.

awaiting with anticipation,


thanking you,
pavan kumar.

# re: Interview Questions: ASP.NET 6/7/2005 6:11 AM Pavan Kumar


Devangam.
hi friends/brothers n sisters,

i am new to c#.net. plz send me the frequently asked interview questions and plz guide to get
through some good company where i can explore my knowledge in .net.

my id is : pavan.devangam@gmail.com

awaiting with anticipation,


thanking you,
pavan kumar.

# re: Interview Questions: ASP.NET 6/7/2005 7:06 AM Poornachander


It's tooooo good
really nice job
Thank you
thanks alot
# re: Interview Questions: ASP.NET 6/7/2005 8:46 PM gopal chandra
biswas
hi friends,

i am new to ASP.net. plz send me the frequently asked interview questions and plz guide to
get through some good company where i can explore my knowledge in ASP/ASP.net.

my id is : g.c_biswas@sify.com

awaiting with anticipation,


thanking you,
gopal chandra biswas

# re: Interview Questions: ASP.NET 6/8/2005 1:25 AM hari pratap


Hello sir

This is Hari Pratap

I am Searching for good job so please help me by giving me all the latest asp interview
quiestions

my mail ID is skd_hari@yahoo.co.in

# re: Interview Questions: ASP.NET 6/8/2005 3:27 AM Nidhi Mishra


Hi Mark

THis is good stuff..and a very jhelpful post!

# re: Interview Questions: ASP.NET 6/8/2005 6:02 AM Apurva


hi,
very good stuff for study
if u have some more deep qus then pls send me @

apurva2k000@yahoo.com

thx

# re: Interview Questions: ASP.NET 6/13/2005 4:01 AM Priza


Hi..
Its a real good piece of work.Its good that freshers like me are being guided by
professionals.Plz. send more .NET questions and guide me to get a good job off-campus.
Thanx,
priza.

# re: Interview Questions: ASP.NET 6/15/2005 6:11 AM Shankar


Dear Friends,

Even if you ask an experience professional this above questions they to answer the same and I
didn't know how you can differenciate that this answer are realated to the freshers.
With Query,
Shankar

# re: Interview Questions: ASP.NET 6/15/2005 12:07 PM Sohel


Hi,
I am new at .net and planning to take some interview. The questions on the top help me alot.
If you have some more interview questions and useful links, please send me at
sohel@ieee.org.
Thanks in advance.
Sohel.

# re: Interview Questions: ASP.NET 6/20/2005 12:37 AM thiyagarajan


pls send .net faq at my mail id plthiyagu@yahoo.com

# re: Interview Questions: ASP.NET 6/20/2005 3:16 AM Bhavesh Patel


Hi Thanks to everyone who has provide this information. Please send me more FAQ related
with C# and XML.

My Mail id is
Bhaveshpatel.78@gmail.com

# re: Interview Questions: ASP.NET 6/22/2005 11:45 PM Prasad Reddy


Aluru
hello friends ,
I said thanks to every body in this group for their helping nature and spend their valuable time

please send me the interview related material and URLs in .net


@parsu_aluri@yahoo.co.in

thank you

# re: Interview Questions: ASP.NET 6/23/2005 1:27 AM Parmeeta Oberoi


I am fresher n these interview question with answers really helping me.Good Show.....keep it
up!!
Keep flooding with more :)

# re: Interview Questions: ASP.NET 6/26/2005 11:00 PM harvinder singh


hello sir.....these questions r really good for freshers..as im a freshers im looking for some
more faqs..do mail me at saini_harvindersingh@yahoo.com....

# re: Interview Questions: ASP.NET 6/26/2005 11:02 PM harvinder singh


plz mail me constantly asked faqs on vb.net,asp.net n c#.net

# re: Interview Questions: ASP.NET 6/27/2005 6:05 AM murthy


sir,

Please send me all the faqs on vb.net , asp.net & c#.net which might help me out in my
inteview

# re: Interview Questions: ASP.NET 6/27/2005 6:10 AM murthy


It is good, providing lot of interesting questions

thanks

# re: Interview Questions: ASP.NET 6/28/2005 2:02 PM Great questions ..


Is there any other good URL For VB.NEt or C# question too? --
Thanks
Krithika

# re: Interview Questions: ASP.NET 6/28/2005 8:16 PM Ashish


Plz provide me the interview questions for vb.net and SQL if possible.
My Email id is Ashish.great@indiatimes.com

# re: Interview Questions: ASP.NET 6/30/2005 8:06 AM Mahesh


i like this website really,,every time i prepare for interview but ,people doesn't want to take ..
i don't y?

# re: Interview Questions: ASP.NET 7/1/2005 12:03 AM Senthil kumar


Dear Sir,

I need the frequently asked interview questions and answer on VB.Net, ASP.Net, C#. Please
send to my email id. pgseram@gmail.com.

# re: Interview Questions: ASP.NET 7/1/2005 1:15 AM prashanth


qustions r very good can u send me some more qustions to my mail
shanthsp2002@yahoo.com

# re: Interview Questions: ASP.NET 7/4/2005 1:57 AM Johny


qustions r very good can u send me some more qustions to my mail roses937@yahoo.com

# re: Interview Questions: ASP.NET 7/4/2005 2:01 AM johny


1. What is the purpose of XSLT other than displaying XML contents in HTML?

2. How to refresh a static HTML page?

3. What is the difference between DELETE and TRUNCATE in SQL?

4. How to declare the XSLT document?

5. What are the data Islands in XML?


6. How to initialize COM in ASP?

7. What are the deferences of DataSet and ???

8. What are the cursers in ADO?

9. What are the in-build components in ASP?

10. What are the Objects in ASP?

Can any body send more ASP.net questions to roses937@yahoo.com

# re: Interview Questions: ASP.NET 7/4/2005 2:03 AM johny


1. What is the user in an asp.net application?

2. How can you unload an asp.net app without touching the iis?

3. What is "delegation" in c# ?

4. in a load balancing environment, which way you choose to maintain state info, if security is
important?

5. What is the life cycle of an asp.net page? (events, from start to end)

6. What command line tools do we have in .net environment?

7. What is the plugin architecture? how to use it?


Can any body send more ASP.net questions to roses937@yahoo.com

# re: Interview Questions: ASP.NET 7/5/2005 2:28 AM shiva


Can any body send more ASP.net questions to
shiva14@rediffmail.com

# re: Interview Questions: ASP.NET 7/6/2005 5:50 AM chandu


please send any .net questions and answers whether they are touch and simple.

with regards
thanQ
chandu

# re: Interview Questions: ASP.NET 7/6/2005 2:24 PM Manoj Kumar M


The article seems to be very much helpful for an interview.It would be great if some more
questions are added to this article.

Thanks
manoj
# Interview Questions: ASP.NET 7/7/2005 2:09 AM predeep
Good Questions and answers.Send more questions and answers in kollamjayan@yahoo.com

# re: Interview Questions: ASP.NET 7/18/2005 9:47 PM DIVAGAR


Nice article. I need more basic questions in c# and asp.net

# re: Interview Questions: ASP.NET 7/18/2005 10:04 PM SaiCHaran


Dear

i glad to see this questions and i benifited from this questions please send me any FAQ'S from
vb.net or asp.nte or C#

to

saicharan.m@gmail.com

# re: Interview Questions: ASP.NET 7/19/2005 12:29 AM Abhijit Nayak


Really, the questions provide are very helpful. Will you please send some more advanced
question in .NET ?

# re: Interview Questions: ASP.NET 7/19/2005 3:52 AM RajyaLakshmi


The Questions are really great.
could any one pls send me imp questions in C#.Net,ASP.Net,Sqlserver 2000
mail me on rlakshmiyepuri@gmail.com

# re: Interview Questions: ASP.NET 7/20/2005 10:31 AM Joe


not bad for starters. But You definately need more

# re: Interview Questions: ASP.NET 7/22/2005 10:20 PM gopal


please mail asp.net interview questions
i have an interview

# re: Interview Questions: ASP.NET 7/22/2005 11:23 PM madheshwar


Its very good for starter.

# re: Interview Questions: ASP.NET 7/23/2005 7:20 AM sailendra


hi,all
can anyone tell me how better we can explian .net features like .net architecture, clr,cls and
other other features in interview .
and also how to restrict session time out
plz mail me at sai_sailendra@yahoo.co.in

# re: Interview Questions: ASP.NET 7/26/2005 2:32 AM Chandan Chaudhari


This Page containes the questions that r asked in most of the interviews. I just faced an
interview and believe me all the questions were from the Same Page. So It is better to refer
these questions before attending an Interview.

# re: Interview Questions: ASP.NET 7/26/2005 2:33 AM Chandan Chaudhari


Why we USE XML in .NET. Please Explain the ADVANTAGES of using XML and Send to
vedcyrus@yahoo.com

Thanks

Chandan

# re: it is a nice work 7/27/2005 12:47 AM shashank bhopal


it was a very good work

i've a question too

Q. I want to programme in raw MSIL how can i do it can i use object orientation in it how will
it compile ultimately.

Q. when .NET has a built in garbage collector then is there any use defining a destructor in
any .NET class?

# re: Interview Questions: ASP.NET 7/27/2005 5:15 AM Arnab


Samanta(Globsyn)
Expecting more....

# re: Interview Questions: ASP.NET 7/31/2005 12:14 AM PKs


This is not at all impressive site, I mean, To become a good and usable site, please upload
10000 questions and answer ( That may be even hypothetical question) to this site.

Happy programming....

# re: Interview Questions: ASP.NET 8/1/2005 10:17 AM sailesh

RESPECTED SIR

UR QUESTIONS SEEM TO BE VRY HELPFUL

AS I WAS BEGINEER IN .NET I NEED SOME QUESTIONS IN THE INTERVIEW POINT OF VIEW

I WILL BE VERY THANKFUL FOR U IF U MAIL IT FOR ME


MY ID:SAILU_WIN@YAHOO.CO.IN
# re: Interview Questions: ASP.NET 8/3/2005 2:38 AM Sonia
Questions are really very helpful.

Mail me if you have some more of such kind

My ID: sonia.khoja@gmail.com

# re: Interview Questions: ASP.NET 8/3/2005 9:57 PM jagannath


i want DotNet(VB.NET,ASP.NET,C#) Frequently asked questions or interview questions

Please mail me at : jagan_nath_02@yahoo.co.in

# re: Interview Questions: ASP.NET 8/3/2005 11:32 PM


shanise_lavender7@yahoo.com
please mail me at my email ad shanise_lavender7@yahoo.com

# re: Interview Questions: ASP.NET 8/6/2005 5:56 AM kiran


i need DotNet(VB.NET,ASP.NET,C#) Frequently asked
nterview questions

# Interview Questions: ASP.NET 8/8/2005 12:44 AM Satya Vir Singh


Questions are really very helpful

# re: Interview Questions: ASP.NET 8/9/2005 9:13 PM Arun Devdas


qustions r very good can u send me some more qustions to my mail arund02@yahoo.co.in

# re: Interview Questions: ASP.NET 8/11/2005 1:12 AM Suriya


I was in need of such collection. Great work to all those who involved...

Keep this good job on!!!

# re: Interview Questions: ASP.NET 8/12/2005 1:17 AM Rajesh Thakur


Hi Everybody

This is realy great place for the Beginer attending interviews i am one of them.so is any one
have some collection of question in .Net and SQL Server please mail me at this ID
mal_rajesh@sify.com

# re: Interview Questions: ASP.NET 8/14/2005 5:26 AM malini


the article is excellent.can u pls send me more questions in ASP.net to my mail id.
thanx.

# re: Interview Questions: ASP.NET 8/17/2005 5:38 AM kumaresh


Really good collective questions and answers. Keep update its useful for us.

Thanks

# re: Interview Questions: ASP.NET 8/19/2005 10:27 PM bhumit rathod


PLS SEND ME MORE QUESTIONS SIR..

# Interview Questions: ASP.NET 8/21/2005 11:38 PM Saravanan


Plz provide me the interview questions for vb.net and SQL Server if possible.
My Email id is durai_saran2002@yahoo.com

# re: Interview Questions: ASP.NET 8/24/2005 4:22 AM Srinivas


RESPECTED SIR

UR QUESTIONS SEEM TO BE VRY HELPFUL . Plese Send More questions on .NET.


I WILL BE VERY THANKFUL FOR U IF U MAIL IT FOR ME
my E-mail id is : srinivas.gvl@gmail.com

# re: Interview Questions: ASP.NET 8/25/2005 12:38 PM renu


Good Site. But I agree with 'Developer in Seattle' - For God's sake stop asking for more
questions..and wasting space here !!

# re: Interview Questions: ASP.NET 8/25/2005 10:58 PM Balaji_nayuni


Hai

# re: Interview Questions: ASP.NET 8/29/2005 3:48 AM Vijayananth


Pls. any one have some collection of question in .Net and SQL Server please mail me at this ID
p_vijey@yahoo.com

# re: Interview Questions: ASP.NET 8/30/2005 5:22 AM Mark Hoffman


Some good questions, but many of them are just sheer trivia. These types of questions don't
give you any insight in to the person's skill or their ability to think.

For example:
"What data types do the RangeValidator control support?
Integer, String, and Date. "

Suppose I know the answer. What does that really tell you? That I've worked with a Range
Validator before. Whoopee. Who cares?

If I don't now answer then it means that either I don't know it exists, haven't worked with it,
or more likely, simply don't remember which data types it supports. I can Google the question
and get a satisfactory answer in about 10 seconds.

When I interview, I want to know that the candidate understands deeper concepts than what
can be Googled in 30 seconds. Explain to me some particular OOP concepts. When would you
use a Singleton? Why? Why use an Interface? How would you implement exception handling in
this case? I want to know that they can THINK. Sure, I'll ask some basic questions that are
trivial during a phone screening, but asking what namespace some class out of the BCL
belongs to is just...well, stupid. It might make you feel superior if you know the answer, but it
does nothing to help you find talented programmers who can think intelligently.

# re: Interview Questions: ASP.NET 9/1/2005 5:25 AM Yogesh Srivastava


These question are very much helpfull for the asp.net interviews.

# re: Interview Questions: ASP.NET 9/3/2005 6:54 PM shahnawaz


i also want a interview questions on ASP.NET,VB.NET,SQL SERVER.PLS ANY BODY SEND ME.

# re: Interview Questions: ASP.NET 9/3/2005 9:17 PM madhavi


the questions are really good and heplful for facing interviews..

# re: Interview Questions: ASP.NET 9/11/2005 7:00 AM Amit Gupta


I want an interview questions on ASP.NET,VB.NET,C#, SQL SERVER.PLS ANY BODY SEND ME.

# Interview Questions: ASP.NET 9/13/2005 3:11 AM Tiki


I hav just jumped to .net technologies its quite a good site for learners coz i can brush up wht
i hav studied through the books. Thanks Mr.Mark Wagner

# re: Interview Questions: ASP.NET 9/14/2005 1:28 AM swati


WOW!!!! i really enjoyed goin.. thru all da ques n ans.... as i m a beginner i gained lot of
knowledge thru dis session............. good work ..............
keep it up!!!!!!!!!!!!
but i feel some ques r repeating n shud be deleted as they consume lot of space over here(on
dis page)

:-)KEEP SMILNG :-)

# re: Interview Questions: ASP.NET 9/14/2005 1:51 AM neha


hi friends !!!!!!!!!!!!
i like the questions being put here as well as the responses but i am in search of some more
difficult questions try to put some more over here O.K.
U BETTER BE OTHERWISE HaHaHaHa

# re: Interview Questions: ASP.NET 9/14/2005 11:16 PM prashant pandey


hi friends !!!!!!!!!!!!
i like the questions being put here as well as the responses but i am in search of some more
difficult questions try to put some more over here O.K.
U BETTER BE OTHERWISE HaHaHaHa

# A Question 9/15/2005 6:00 AM Sanket


Hello there,

Can someone explain when we inherit from HttpApplication to create a class for Global.asax,
Why do we NOT have to override Application_Start or any other event handler methods ??

Or, How is that eventhandler linked with the event?

Thanks
Sanket Vaidya

# re: Interview Questions: ASP.NET 9/19/2005 12:33 AM mithun.achar


hi,
I thank u 4 these questions this will help me in my interview today

# re: Interview Questions: ASP.NET 9/21/2005 2:31 AM Apurva


I like the wat Mark Hoffman wrote
that helps us to understand wht interviwer wants
good
can u pls send me some more interview qus

mail me at apurva2k000@yahoo.com

# re: Interview Questions: ASP.NET 9/23/2005 12:02 AM umesh


I like this type of question

# re: Interview Questions: ASP.NET 9/24/2005 5:51 AM Ashu


I found question/ansews to ASP.Net very very interesting. I stumble upon this link by chance.
In fact i was looking for Interview styled question on Visual Studio.Net. If u can plz email it to
me or any relevant URL.. Although i m looking for a URL on my own and wud post it here if i
get a good URL on Visula Studio.Net.
rgds and thanx

# re: Interview Questions: ASP.NET 9/24/2005 5:58 AM Ashu


sorry didn't left my email address. My email is kapil.aashu@gmail.com.

# Some ASP.NET questions 9/28/2005 3:51 AM Naren


1. Explain the differences between Server-side and Client-side code?
Server side code basically gets executed on the server (for example on a webserver) per
request/call basis, while client side code gets executed and rendered on the client side (for
example web browser as a platform) per response basis.

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


class?
In the Code-behind class the server side code resides, and it generates the responses to the
client appropriately while it gets called or requested.

3. Should validation (did the user enter a real date) occur


server-side or client-side? Why?
That depends. In the up browsers (like IE 5.0 and up and Netscape 6.0) this would help if it
gets validated on the client side, because it reduces number of round trips between client and
server. But for the down level browsers (IE 4.0 and below and Netscape 5.0 and below) it has
to be on server side. Reason being the validation code requires some scripting on client side.

4. What does the "EnableViewState" property do? Why would I want it on or off?
EnableViewState stores the current state of the page and the objects in it like text boxes,
buttons, tables etc. So this helps not losing the state between the round trips between client
and server. But this is a very expensive on browser. It delays rendering on the browser, so you
should enable it only for the important fields/objects
5. What is the difference between Server.Transfer and
Response.Redirect? Why
would I choose one over the other?
Server.Transfer transfers the currnet context of the page to the next page and also avoids
double roundtrips. Where as Response.Redirect could only pass querystring and also requires
roundtrip.

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
Webservice is one of main component in Service Oriented Architecture. You could use
webservices when your clients and servers are running on different networks and also different
platforms. This provides a loosely coupled system. And also if the client is behind the firewall it
would be easy to use webserivce since it runs on port 80 (by default) instead of having some
thing else in SOA apps
.
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
You have to use System.EnterpriseServices namespace and also COMInterop the existing
application

8. Can you explain the difference between an ADO.NET Dataset and an


ADO Recordset?
ADO.NET DataSet is a mini RDBMS based on XML, where as RecordSet is collection of rows.
DataSet is independent of connection and communicates to the database through
DataAdapter, so it could be attached to any well defined collections like hashtable, dictionary,
tables, arraylists etc. practically. And also it can be bound to DataGrid etc. controls
straightaway. RecordSet on the otherhand is tightly coupled to Database System.

9. Can you give an example of what might be best suited to place in


the Application_Start and Session_Start subroutines?
In the Application_Start event you could store the data, which is used throughout the life time
of an application for example application name, where as Session_Start could be used to store
the information, which is required for that session of the application say for example user id or
user name.

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
users?
Use the state server or store the state in the database. This can be easily done through simple
setting change in the web.config.
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="30"
/>
in the above one instead of mode="InProc", you specifiy stateserver or sqlserver.

11. What are ASP.NET Web Forms? How is this technology different than
what is available though ASP (1.0-3.0)?
ASP.NET webforms are analogous to Windows Forms which are available to most VB
developers. A webform is essentially a core container in a Page. An empty webform is nothing
but a HTML Form tag(control) running at server and posting form to itself by default, but you
could change it to post it to something else. This is a container, and you could place the web
controls, user controls and HTML Controls in that one and interact with user on a postback
basis.

12. How does VB.NET/C# achieve polymorphism?


Polymorphism is achieved through virtual, overloaded, overridden methods in C# and VB.NET
11. Can you explain what inheritance is and an example of when you
might use it?
.

13. How would you implement inheYou missed the number sequence here). Inheritance is
extending the properites, behaviour, methods to child classes from super classes. VB.NET and
C# provide single inheritance, means the subclasses can be derived from only one parent
unlike C++, where true multiple inheritance is possible. As an alternate to implement multiple
inheritance, we could do the same to implement interfaces to the parent classes and
implement the same interfaces to derive the child classesritance using VB.NET/C#?

14. Whats an assembly


An assembly is the primary building block of .NET. It's a reusable, self-describing,
versionable deployment unit for types and resources. They are self-describing so to allow the
.NET runtime to fully understand the application and enforce dependency and versioning rules

15. Describe the difference between inline and code behind - which is
best in a
16. loosely coupled solution
5 and 16. (You missed the sequence again). Inline style is mixing the server side code and
client side code (HTML and javascript) on the same page and run it. Where as codebehind is
seperating the server side in a different page (enabling developers/coders to work) and
leaving the client side code to do the presentation only (so designers would work on it). Inline
code would be simplest way of approach because it doesn't require any pre-compilation. But it
is not good in many ways, i. You mix the presentation and server side code together so
whenever there is a change it would be tough to maintain. ii. The event processing would be a
night mare in inline code. iii. Since the codebehind needs to be compile in advance, it would be
faster unline inline, which is interpreted per call basis. In a loosely couple situation, code-
behind would be the best way to approach. Because it provides better performance.
17. Explain what a diffgram is, and a good use for one
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/sqlxml3/htm/dotnet_11pr.asp
18. Where would you use an iHTTPModule, and what are the limitations
of any
19. approach you might take in implementing one
20. What are the disadvantages of viewstate/what are the benefits
21 Describe session handling in a webfarm, how does it work and what
are the > limits
22. How would you get ASP.NET running in Apache web servers - why
would you even do this?
23. Whats MSIL, and why should my developers need an appreciation of
it if at all?
24. In what order do the events of an ASPX page execute. As a
developer is it important to undertsand these events?
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 Repeater
control?
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 Repeater
control?
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?
34. What tags do you need to add within the asp:datagrid tags to bind
columns manually?
35. How do you create a permanent cookie? Supply never to the expiration date/time
36. What tag do you use to add a hyperlink column to the DataGrid?
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?
42. What property do you have to set to tell the grid which page to go
to when using the Pager object?
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.
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?
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?
1 Describe session handling in a webform, how does it work and what
are the its limits

Sometimes it is necessary to carry a particular session data across pages.


And HTTP is a stateless protocol. In order to maintain state between
page calls, we could use cookies, hidden form fields etc. One of them is
using sessions. each sessions are maintain a unique key on the server and
serialize the data on it. Actually it is a hashtable and stores data on key/value
pair of combination. You could set a session using Session Object and retrieve the same
data/state
by passing the key.
//Set
Session["abc"] = "Session Value";
// Get
string abc = Session["abc"].ToString();
The downside of sessions is scalability. Say your application gets more and more hits
and you though instead of one webserver handling it, have it in a webfarm (multiple web
servers working under one domain). You cannot transfer the session so easily across multiple
webservers. Reason is like I said, it physically serializes the state data to webserver hard disk.

.NET proposes a new way to handle this using a stateserver (actually a trimmed down sql
server)
storing the web session data in a factory configured database schema or using Database with
your own
schema defined to handle the sessions.

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

You need to create a CLRHost, which hosts the CLR (ASP.NET) on top of Apache.
Since Apache is #1 webserver used by many companies, this would allow more number of web
site owners
to take advantage of ASP.NET and its richness.

3. Whats MSIL, and why should my developers need an appreciation of


it if at all?

MSIL is Microsoft Intermediate (Intermediary) Language. It is Microsoft's implementation of


CIL (standard recognized
by ECMA and ISO) as part of CLI and C# Standardization.

.NET supports more than 21 language (I think 24 now). They compile to IL first and then this
IL would get JITted to Native
code at runtime. Learning IL is advantageous in many terms. The important one is sometimes
you need to optimize your
code, so you could disassemble your compile assembly using ILDASM and tweak your code
and re assemble it using ILASM.

4. In what order do the events of an ASPX page execute. As a


developer is it important to undertsand these events?

This is the order of Page events


i. Page_Init
ii.Page_LoadViewState
iii. Page_LoadPostData
iv. Page_Load
v. Page_RaisePostDataChanged
vi. Page_RaisePostBackEvent
vii. Page_PreRender
viii. Page_SaveViewState
ix. Page_Render
x. Page_Dispose
xii. Page_Error (this is caused whenever there is an exception at the page level).

Out of all the Page_Load is the one where your code gets loaded and your magic should be
written. page_init
occurs only once, i.e. when the page is initially created.

As a developer you need to know these, becuase your development activity is coding for these
only.

5. Which method do you invoke on the DataAdapter control to load your


generated dataset with data?
Fill()

6. Can you edit data in the Repeater control?


No. Only DataList and DataGrid provide you editing capabilities.

7. Which template must you provide, in order to display data in a


Repeater control?
ItemTemplate

8. How can you provide an alternating color scheme in a Repeater


control?

Use AlternatingItemTemplate

9. 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 Repeater
control?

The text property and the DataBind Method.

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

System.Web.UI.Page

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

Session.Abandon

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

Actually I never did this. But there should be a way to do this. May be need to
write your own code to do this using Response.Cookies collection and HTTPCookie class and
also SessionStateMode. Or there may be some simple way to do it. Need to do further
research on this.

13. Which two properties are on every validation control?

The common properties are:


i. IsValid (bool)
ii. ControlToValidate (string)
iii. ErrorMessage (string)
iv. ValidationDisplay (Display)
v. Text (string)
The common method is:
Validate()

14. What tags do you need to add within the asp:datagrid tags to bind
columns manually?

You need to set AutoGenerateColumns Property to false.

15. How do you create a permanent cookie?

If you are developing web services and the cookies need to be travelled across multiple
requests, then
you need to have permanent or persistant cookie.
In order to do this, you have to set the your webserivce CookieContainer to a newly created
CookieContainer, and the
its cookie to a session value and then store the cookie(s) into the Service CookieCollection
from that cookie container
if something is there othere wise add cookie to the container.

16. What tag do you use to add a hyperlink column to the DataGrid?
HyperLinkColumn
17. What is the standard you use to wrap up a call to a Web service
SOAP.
18. Which method do you use to redirect the user to another page
without performing a round trip to the client?
Server.Transfer
Response.Redirect also does that but it requires round trip between client and server.

19. What is the transport protocol you use to call a Web service SOAP
SOAP
20. True or False: A Web service can only be written in .NET
False.
21. What does WSDL stand for?
Web Services Description Language.

22. What property do you have to set to tell the grid which page to go
to when using the Pager object?
CurrentPageIndex. You need to set this one with the DataGridPageChangedEventArgs'
NewPageIndex.

23. Where on the Internet would you look for Web services?
UDDI.org, UDDI.Org (even microsoft maintains a uddi server-- http://uddi.microsoft.com)
UDDI is Universal Description, Discovery and Integration of Web Services.
The UDDI servers serves as yellow pages to WebServices (visit http://www.uddi.org)

24. What tags do you need to add within the asp:datagrid tags to bind
columns manually.

Set AutoGenerateColumns Property to false on the datagrid tag

25. 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?

ListItem.

26. How is a property designated as read-only?


If it has only get accessor.

ex:
public class abc
{
private string stringIt="This is the string";
public string StringIt
{
get
{
return stringIt;
}
}
}

But you could set an attribute prior to the property name with [ReadOnly="true"],
if that property defined an attribute
27. Which control would you use if you needed to make sure the values
in two different controls matched?

Use CompareValidator

28. True or False: To test a Web service you must create a windows
application or Web application to consume this service?

False. The webservice comes with a test page and it provides HTTP-GET method to test.
And if the web service turned off HTTP-GET for security purposes then you need to create
a web application or windows app as a client to this to test.

29. How many classes can a single .NET DLL contain?

many is correct. Yes an assembly can contain one or more classes and an assembly can
be contained in one dll or could spread across multiple dlls. too. Take System.dll, it is
collections of so many classes.
2. What is CLR ? 2.1. Diff between CLR & CTS
3. Trace and Debug belongs to which namespaces?
4. ColumnMapping belongs to which namespaces?
5. In order to get assembly info whcih namespace we should import?
6. DIff. between Friend and Protected Friend.
7. What is an abstract class?
8. What is diff. between abstract class and an interface?
· what is shadowing ?
· Overloading allows a subclass to add a new variation of a method. As long as the new
variation has a different method signature, it can have the same name as an existing method
on the base class. Shadowing, on the other hand, entirely replaces all variations of the method
from the base class, leaving the subclass with only a single version of the method—the one we
created through shadowing. Shadowing does not extend an interface, but rather replaces
existing methods.

Overriding allows a subclass to alter or replace an existing method with the permission of the
base class designer. Shadowing can be done without the permission of the base class designer,
which is a risky proposition and one that requires extensive testing because the base class was
never designed with such a thing in mind.

Also, as we discussed earlier, overriding uses virtual methods so the implementation of the
method that is invoked is based on the data type of the underlying object, not the data type of
the variable we're using. When a method is shadowed it is not virtual, and it is the data type
of the variable that dictates the implementation of the method that will be used. The data type
of the underlying object is ignored.

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dnadvnet/html/vbnet12252001.asp
· * diff between Overriding and overloading
9. How do u declare static variable and how it is declared and what is its lifetime? 10. Diff
between Dataset and Datareader?
11. How do u get record no from 5 to 15 from a dataset of 100 records.
12. diff. betn Dataset and Recordset.
13. why Datareader is useful?
14. How do u call and execute a SP in .NET?
15. What is DLL hell?
16. what is versioning in .NET?
17. What r the ASP.NET list controls and diff. between them?
18. What is diff. betn ASP State Management and ASP.NET State Management?(Imp)
19. How can we pass info. between 2 asp.net pages?
20. Diff betn Web User Control and Web Custom Control
21. What is an indexed property?
22. i've 2 buttons on an asp.net page(.aspx). i wanna execute same routine clicking on 2
buttons.how?
23. How do we Sort the data from a Dataset?
24. how do we get only edited/deleted/inserted records from a Dataset?
25. how Dataadapter.fill works?
26. how can we implement a Identity (SQL Server) call in an asp.net page?
27. What is Viewstate?
28. What is the life cycle of an asp.net page?

1. What does the keyword static mean when applied to a class member?
1. It means the method can be called through the class without instantiating the class.

2. Declare a method called calculate that takes one integer, adds one and returns the result.
Allow this method to be overridden by an inheriting class.
2.
Public virtual int calculate(int value)
{
newValue = value + 1;
return newValue;
}
value++;
return value;

3. What is the difference between a class and a struct?


3. The class object is stored in the heap and struct object is stored in the stack. Therefore
accessing and removing data from the struct is faster than for a class.

4. What is the difference between a class and an interface?

4. You can instantiate a class but you cannot instantiate an interace you can only offer the
functionality of that interface.

5. What are the .Net web authentication options and which one would generally be used for a
secured/public site?
5. None
Windows Authentication –Secured side
IIS Authentication
Forms Authentication – Public Side

6. What are some .Net options for maintaining session state?


6. In process and out of process. (wasn't sure about this one?)
I believe the 6th one could be
Querystring, Cookies, Session objects (variables)
I wasn't sure, but I knew they could either be handled in the memory on the local machine (in
process) or through the ASP.NET state service running either locally or remotely (out of
process).

7. What is a Singleton?
7. This ensures that a class can only be instantiated once.

Using the EMPLOYEE and JOBS tables, fill in the following stored procedure template so that it
removes a job by job_id and all associated employees ensuring that both updates succeed or
fail together.

CREATE PROCEDURE deleteJob @jobid smallint AS


Database Answer:

CREATE PROCEDURE deleteJob @jobid smallint AS

BEGIN
BEGIN TRAN
IF EXISTS (SELECT * FROM JOBS WHERE job_id = @jobid)
DELETE FROM JOBS WHERE job_id = @jobid
IF @@ERROR <> 0
BEGIN
RAISERROR(‘Could not delete row from Jobs – Abort’, 16,1)
GOTO Errorhandler
END
IF EXISTS(SELECT * FROM EMPLOYEES WHERE job_id = @jobid)
DELETE FROM EMPLOYEES
WHERE job_id = @jobid
IF @@ ERROR <> 0
BEGIN
RAISERROR(‘Could not delete row from Employees – Abort’, 16,1)
GOTO Errorhandler
END
COMMIT
RETURN
Errorhandler:
ROLLBACK TRAN
RETURN
END

You could also ask him what situations to use a datareader in, when to use a dataset etc... for
ado.net

In general they will be questions bascially on the SQL Server management, what kind of
different services it provides. what the replication methods used. They will give you a situation
where you have to choose which type of SQL sever edition you have to use. (there are 7).

About ADO.NET, they will give some senario and ask you to use the appropriate methods like
sort,filter, row state enumeration and all

1. What is other name for shared assembly?


2. How do you create and use shared assemblies?
3. How do you use thread in your .NET application?
4. what are the main differences between Web Server controls and HTML Server controls?
5. Differences between ref and out parameters?
6. How will you consume web services in ASP.NET?
7. To test web service you must create a windows application or web application to consume
this service (True or False).
8. When on the internet would you look for web services?
9. Does .NET supports Pessimistic record locking or Optimistic record locking or both?
10. What is Catch API?
11. How do you handle concurrency errors?
12. where on the internet would you look for web services?
13. In .NET Exception handling model, what are the benefits of over return code?
· Shared assemblies. By including a strong name, the assembly can be shared by multiple
applications running on the same machine when installed in the Global Assembly Cache (GAC).
This code-sharing model is the inverse of the model used in the unmanaged world, where COM
components are automatically shared when compiled and registered in the system registry.
Serviced Components. For a .NET class to take advantage of Enterprise Services (COM+
Services), such as distributed transactions and object pooling, the assembly that contains the
class—called a Serviced Component because it inherits from the class
EnterpriseServices.ServicedComponent—must have a strong name. Having a strong name
allows Enterprise Services to be sure it loads the correct assembly. Serviced Components that
run in the process hosted by Enterprise Services (DLLHost.exe) should be placed in the GAC,
while those running as library applications in the caller's process need not
ADO.NET and Visual Studio .NET use optimistic concurrency, because the data architecture is
based on disconnected data. Therefore, you need to add business logic to resolve issues with
optimistic concurrency.
If you choose to use optimistic concurrency, there are two general ways to determine if
changes have occurred: the version approach (true version numbers or date-time stamps) and
the saving all values approach.
· be.
sion Number ApproachIn the version number approach, the record to be updated must have a
column that contains a date-time stamp or version number. The date-time stamp or a version
number is saved on the client when the record is read. This value is then made part of the
update.One way to handle concurrency is to update only if value in the WHERE clause matches
the value on the record. The SQL representation of this approach is:
UPDATE Table1 SET Column1 = @newvalue1, Column2 = @newvalue2 WHERE DateTimeStamp
= @origDateTimeStamp
Alternatively, the comparison can be made using the version number:
UPDATE Table1 SET Column1 = @newvalue1, Column2 = @newvalue2 WHERE RowVersion =
@origRowVersionValue
If the date-time stamps or version numbers match, the record in the data store has not
changed and can be safely updated with the new values from the dataset. An error is returned
if they don't match. You can write code to implement this form of concurrency checking in
Visual Studio .NET. You will also have to write code to respond to any update conflicts. To keep
the date-time stamp or version number accurate, you need to set up a trigger on the table to
update it when a change to a row occurs

A finally block can not have with break; continue; return or goto statements

Hi Friends,

I know some of the answers.... but i want to recheck it... Please give me the correct
answers... or any links where i can study abt these...

1. what is the root namespace for all types?

2. What is CLR ?

2.1. Diff between CLR & CTS

3. Trace and Debug belongs to which namespaces?

4. ColumnMapping belongs to which namespaces?

5. In order to get assembly info whcih namespace we should import?

6. DIff. between Friend and Protected Friend.

7. What is an abstract class?

8. What is diff. between abstract class and an interface? * what is shadowing ? * diff between
Overriding and overloading
9. How do u declare static variable and how it is declared and what is its lifetime?

10. Diff between Dataset and Datareader?

11. How do u get record no from 5 to 15 from a dataset of 100 records.

12. diff. betn Dataset and Recordset.

13. why Datareader is useful? 14. How do u call and execute a SP in .NET?

15. What is DLL hell?

16. what is versioning in .NET?

17. What r the ASP.NET list controls and diff. between them?

18. What is diff. betn ASP State Management and ASP.NET State Management?(Imp)

19. How can we pass info. between 2 asp.net pages? 20. Diff betn Web User Control and Web
Custom Control.

21. What is an indexed property?

22. i've 2 buttons on an asp.net page(.aspx). i wanna execute same routine clicking on 2
buttons.how?

23. How do we Sort the data from a Dataset?

24. how do we get only edited/deleted/inserted records from a Dataset?

25. how Dataadapter.fill works?

26. how can we implement a Identity (SQL Server) call in an asp.net page?

27. What is Viewstate?

28. What is the life cycle of an asp.net page?

Thanks
1. System
2. Common Language Runtime
2.1.
CLR - The common language runtime is the execution engine for .NET Framework applications.

It provides a number of services, including the following:

Code management (loading and execution)


Application memory isolation
Verification of type safety
Conversion of IL to native code
Access to metadata (enhanced type information)
Managing memory for managed objects
Enforcement of code access security
Exception handling, including cross-language exceptions
Interoperation between managed code, COM objects, and pre-existing DLLs (unmanaged code
and data)
Automation of object layout
Support for developer services (profiling, debugging, and so on)

CTS - The common type system is a rich type system, built into the common language
runtime, that supports the types and operations found in most programming languages. The
common type system supports the complete implementation of a wide range of programming
languages.

3. System.Diagnostics

4. System.Data.Common

5. System.Reflection

6.
Protected - Available only to classes that inherit from our class.
Friend - Available only to code within the project/component.
Protected Friend - Available only to classes that inherit from our class (in any project) or to
code within our project/component. This is a combination of Protected and Friend.

7. Abstract classes cannot be instantiated they can only be extended. You call the functionality
of the abstract class without having to create an instance of it.

8.
a) Interfaces don't have implementation and abstract classes can be partially implemented.

From a practical point of view, interfaces can be implemented in any class and more than one
interface can be implemented in a class, but abstract classes can only be implemented in the
same class hierarchy (subclassing) and only one abstract class can be implemented in a class.

b) Basically it's an mixture of non-virtual methods and method hiding. That is, in VB.NET
overriding methods never hide while non-overriding methods always do.

c)
Overloading a method means that you are providing another version of an existing method
that takes different input arguments/parameters. The method will have the same name as an
existing method and may or may not have a different return type. It must have a different
number and/or type of input parameters. Methods are identified by their name, and number
and type of arguments. This is known as the method's signature. The return value of a method
is not regarded as part of the signature. Overloading can be done within the same class i.e.
you can have several methods defined in one class that have the same name, but different
arguments, or it can be done in a class related to another by inheritance i.e. the superclass
contains one method, and a subclass provides another version of the method with the same
name and different arguments.

Overriding a method means that you are replacing the method with your own version. The
overriding method must be defined identically to the method being replaced. Overriding can
only be done in inherited classes i.e. the superclass provides a method and the subclass
redefines the method with one that has exactly the same name and arguments as the
superclass version. This will cause the method to behave differently when it is called by an
object of the subclass, to when it is called by an object of the superclass.

9.
Has application scope...variable only goes out of scope when the application ends.
code:

public static int Size = 0;


10.
The datareader is a forward only, readonly object. It will keep a connection open as long as it
is open. It is a fast way to loop through records.

The dataset can be used like an in memory representation of the database. You can use
DataViews to filter and sort records for presentation. You can also establish relationships with
the dataRelation object. You can use the dataset with a data adapter to update the database.
These objects can keep track of changes and original values. When updating the database
these objects can help to resolve conflicts or concurrency issues.

11.

Working with ADO.NET

Now, I'm tired...You can find the answers to all of these questions...If you really want to.
__________________
"When that first bullet goes past your head, politics goes right out the window." Eric Bana -
Black Hawk Down

# re: Interview Questions: ASP.NET 9/28/2005 3:54 AM NarasimhaRao


Pls provide some stuff for ADO.Net with XML

My mail Id is narasimha_nandu@yahoo.com

# re: Interview Questions: ASP.NET 9/28/2005 12:17 PM Job Hunter in


Seattle
Good God. So many threads going on. I think there are a lot of desperate job searchers are
out there (especially freshers). Every body is asking for questions to be sent to their email id.
You already have got tons and tons of question in this page. Have you all done learning those.

The basic thing is nobody knows what to study [what are the important topics to focus, how to
study for the interview....[ we never know what Q would come from the interviewer] . Me
too..Thats the reason i am here.

By just going through the questions and answerers you can not win.

All you need to do is once you done reading the particular topic for eg. ADO.Net, then search
for questions and see if you could answer.

Or just don't read the answer and try to remember that. Read that topic fully and try to
understand.

I got some basic questions, may seem very easy but try to answer [try to tell out loud in 3 or
4 lines] with out googling

1. What is HTML ?
2. What is XML ?
3. What is the difference between a class and struct ?
4. What is the difference between a Get and a Post ?
5. What is a managed code ?
6. int n *=2; int x = n & 1; What is the value of x ?
7. What is a friend in C++ ?

Knowledge is Power. All the best for the hunters.

# re: Interview Questions: ASP.NET 9/29/2005 1:24 PM Job Hunter in


Seattle
1.Why would you use an array vs linked-list ?

Linked List:
? They allow a new element to be inserted or deleted at any position in a constant number of
operations (changing some references) O(1).
? Easy to delete a node (as it only has to rearrange the links to the different nodes)., O(1).
? To find the nth node, will need to recurse through the list till it finds [linked lists allow only
sequential access to elements. ], O(n)

Array
? Insertion or deletion of element at any position require a linear (O(n)) number of operations.

? Poor at deleting nodes (or elements) as it cannot remove one node without individually
shifting all the elements up the list by one., O(n)
? Poor at inserting as an array will eventually either fill up or need to be resized, an expensive
operation that may not even be possible if memory is fragmented. Similarly, an array from
which many elements are removed may become wastefully empty or need to be made smaller,
O(n)

? easy to find the nth element in the array by directly referencing them by their position in the
array.[ arrays allow random access ] , O(1)

# re: Interview Questions: ASP.NET 10/3/2005 3:51 AM venkatesh moorthy


For beginners in asp.net the following site is very useful...
www.aspspider.com

Das könnte Ihnen auch gefallen