Thursday, October 21, 2004

ASP.Net Interview Questions

ASP.Net Interview Questions

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

2. Can you edit data in the Repeater control?

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

4. How can you provide an alternating color scheme in a Repeater control?

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

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

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

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

9. Which two properties are on every validation control?

10. What tags do you need to add within the tags to bind columns manually?

11. How do you create a permanent cookie?

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

13. What is the standard you use to wrap up a call to a Web service

14. Which method do you use to redirect the user to another page without performing a round trip to the client?

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

16. True or False: A Web service can only be written in .NET
17. What does WSDL stand for?

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

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

20. What tags do you need to add within the tags to bind columns manually.

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

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

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

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

25. How many classes can a single .NET DLL contain?
(a) One and only one
(b) Not more than 2
(c) Many
26. What are user controls and custom controls?

27.What is view state and use of it?

28. What are the validation controls?

29. What's the difference between Response.Write() andResponse.Output.Write()?

30. What methods are fired during the page load? Init()

31. Where does the Web page belong in the .NET Framework class hierarchy?

32. Where do you store the information about the user's locale?


33. What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?

34. What's a bubbled event?

35. Where do you add an event handler?

36. What data type does the RangeValidator control support?

37. What are the different types of caching?


38. CachingOutput Caching: Caches the dynamic output generated by a request. Some

40. Data Caching: Caches the objects programmatically. For data caching asp.net provides a cache object for eg: cache["States"] = dsStates;

41. What do you mean by authentication and authorization?


42. How do I debug an ASP.NET application that wasn't written with Visual Studio.NET

43. Can a user browsing my Web site read my Web.config or Global.asax files?

44. What's the difference between Page.RegisterClientScriptBlock and

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

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

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

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

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

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

51. 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

52. Can you explain the difference between an ADO.NET Dataset and an
ADO Recordset?

53. Can you give an example of what might be best suited to place in
the Application_Start and Session_Start subroutines?

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

55. What are ASP.NET Web Forms? How is this technology different than
what is available though ASP (1.0-3.0)?

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

57. Can you explain what inheritance is and an example of when you
might use it?

58. How would you implement inheritance using VB.NET/C#?

59. Whats an assembly

60. Describe the difference between inline and code behind - which is
best in a

61. loosely coupled solution

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

63. Where would you use an iHTTPModule, and what are the limitations
of any

64. approach you might take in implementing one

65. What are the disadvantages of viewstate/what are the benefits

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

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

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

69. In what order do the events of an ASPX page execute. As a
developer is it important to undertsand these events?

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

71. Can you edit data in the Repeater control?

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

73. How can you provide an alternating color scheme in a Repeater
control?

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

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

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

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

78. Which two properties are on every validation control?

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

80. How do you create a permanent cookie?

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

82. What is the standard you use to wrap up a call to a Web service

83. Which method do you use to redirect the user to another page
without performing a round trip to the client?

84. What is the transport protocol you use to call a Web service SOAP

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

86. What does WSDL stand for?

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

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

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

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

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

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

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

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

Tuesday, October 12, 2004

.NET Framework Namespaces

Hi here I try to list the namespaces vailabel in .net framework small info about that namespace

.NET Framework Namespaces :1

1
Microsoft.CSharp
Contains classes that support compilation and code generation using the C# language.

2
Microsoft.JScript
Contains the JScript runtime and classes that support compilation and code generation using the JScript language.

3
Microsoft.VisualBasic
Contains the Visual Basic .NET runtime and the classes that support compilation and code generation using the Visual Basic language.

4
Microsoft.VSA
Contains interfaces that allow you to integrate script for the .NET Framework script engines into applications, and to compile and execute code at run time.

5
Microsoft.Win32
Provides two types of classes: those that handle events raised by the operating system and those that manipulate the system registry.

6
System
Contains fundamental classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions. Provides services supporting data type conversion, method parameter manipulation, mathematics, remote and local program invocation, application environment management, and supervision of managed and unmanaged applications.

7
System.CodeDom
Contains classes that can be used to represent the elements and structure of a source code document. Also contains classes that can be used to manage the generation and compilation

of source code in supported programming languages based on the structure of Code Document Object Model (CodeDOM) source code models.

8
System.Collections
Contains interfaces and classes that define various collections of objects, such as lists, queues, arrays, hash tables and dictionaries. Includes the Specialized namespace for strongly-typed collections.

9
System.ComponentModel
Provides classes that are used to implement the run-time and design-time behavior of components and controls. This namespace includes the base classes and interfaces for implementing attributes, type converters, binding to data sources, and license components.

10
System.Configuration
Provides classes and interfaces that allow you to programmatically access .NET Framework configuration settings and handle errors in configuration files (.config files).

11
System.Data
Contains classes that constitute the ADO.NET architecture. The ADO.NET architecture enables you to build components that efficiently manage data from multiple data sources. In a disconnected scenario (such as the Internet), ADO.NET provides the tools to request, update, and reconcile data in multiple tier systems. The ADO.NET architecture is also implemented in client applications, such as Windows Forms, or HTML pages created by ASP.NET.

12
System.Diagnostics
Provides classes that allow you to debug your application and to trace the execution of your code, as well as start system processes, read and write to event logs, and monitor system performance using performance counters.

13
System.DirectoryServices
Provides easy access to the Active Directory from managed code.

14
System.Drawing
Provides access to GDI+ graphics and typography.

15
System.EnterpriseServices
Provides access to COM+ services and .NET objects. Includes classes with access to Compensating Resource Manager (CRM) in managed code. A CRM is a service provided by COM+ that enables you to include non-transactional objects in Microsoft Distributed Transaction Coordinator (DTC) transactions.

16
System.Globalization
Contains classes that define culture-related information, including the language, the country/region, the calendars in use, and the format patterns for dates, currency and numbers, and the sort order for strings.


17 System.IO
Contains types that allow synchronous and asynchronous reading from and writing to data streams and files.

18 System.Management
Provides access to a rich set of management information and management events about the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure.

19 System.Messaging
Provides classes that allow you to connect to message queues on the network, send messages to queues, and receive or peek at (read without removing) messages from queues.

20 System.Net
Provides a simple programming interface to many of the protocols found on the network today. The WebRequest and WebResponse classes form the basis of "pluggable protocols," an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the protocol used.

21 System.Reflection
Contains classes and interfaces that provide a managed view of loaded types, methods, and fields, with the ability to dynamically create and invoke types.

22 System.Resources
Provides classes and interfaces that allow developers to create, store, and manage various culture-specific resources used in an application.

23 System.Runtime
Provides functionality for compiler writers using managed code to specify attributes in metadata that affect the run-time behavior of the common language runtime. Includes the InteropServices namespace that provides a collection of classes useful for accessing COM objects, and native APIs from .NET. The types in the InteropServices namespace fall into the following areas of functionality: attributes, exceptions, managed definitions of COM types, wrappers, type converters, and the Marshal class. Also includes the Remoting namespace that provides classes and interfaces that allow developers to create and configure tightly- or loosely-coupled distributed applications. Some of the more important classes of the System.Runtime.Remoting namespace are the RemotingConfiguration class, the RemotingServices class, and the ObjRef class.

24 System.Security
Provides the underlying structure of the common language runtime security system, including base classes for permissions.

25 System.Text
Contains classes representing ASCII, Unicode, UTF-7, and UTF-8 character encodings; abstract base classes for converting blocks of characters to and from blocks of bytes; and a helper class that manipulates and formats String objects without creating intermediate instances of String.

26 System.Threading
Provides classes and interfaces that enable multithreaded programming. This namespace includes a ThreadPool class that manages groups of threads, a Timer class that enables a delegate to be called after a specified amount of time, and a Mutex class for synchronizing mutually exclusive threads. System.Threading also provides classes for thread scheduling, wait notification, and deadlock resolution.

27 System.Timers
Provides the Timer component, which allows you to raise an event on a specified interval.

28 System.Web
Provides classes and interfaces that enable browser/server communication. This namespace includes the HTTPRequest class that provides extensive information about the current HTTP request, the HTTPResponse class that manages HTTP output to the client, and the HTTPServerUtility class that provides access to server-side utilities and processes. System.Web also includes classes for cookie manipulation, file transfer, exception information, and output cache control.

29 System.ServiceProcess
Provides classes that allow you to install and run services. Services are long-running executables that run without a user interface. They can be installed to run under a system account that enables them to be started at computer reboot.

30 System.Web.Services
Contains classes that enable you to build and use Web Services. A Web Service is a programmable entity residing on a Web server exposed using standard Internet protocols.

31 System.Web.UI
Provides classes and interfaces that allow you to create controls and pages to make up the user interface for your Web applications. This namespace includes the Control class, which provides all controls, whether HTML, Web, or user controls, with a common set of functionality. It also includes the Page control, which is generated automatically whenever a request is made for a page in your Web application. Also provided are classes that provide the Web Forms Server Controls data-binding functionality, the ability to save the view state of a given control or page, as well as parsing functionality for both programmable and literal controls.

32 System.Windows.Forms
Contains classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows operating system.

Monday, October 11, 2004

Student Chapter started in Cummins college of Engg

Finally we started with a long pending Student Chapter
in Cummins College of Engg for Women on the 9th
October 2004.

our saturday started on 9:00 am atallana institute where I and sarang was there for the regular C# session.I reaches let that is by 9:30 butI didn't miss any thing as sarang not started the session. after session over by 12 / 12:30 we left for the Cummins college while going we pickup Hardik on way and eat "WadaPav" since both I and sarnag not take the luanch.


In cummins we started some what late. here Hardik did a presentation on INETA's and Microsoft's
academic initiatives. He also spoke about DevCon,
Imagine Cup, The Student Project Program and The
Spoke. After that we started of with introducing .NET
to the students of Cummins. Totally the entire thing
lasted for 2 1/2 hours. (1:45 to 4:15).

After the session in Cummins we left for MIT college
where we were gonna have the PUG meet.

We had a session on .NET Remoting and Web Services at
1700 hrs) taken up by Harsha Kumar (a student
volunteer from Cummins) and Sarang [MVP]. Not to forget we had a
special guest appearance from Nauzad, who ended the
session with a cool demo on Authentication in Web
Services.

After the UG meet we have surprise for Sarang...A Black
Forest Cake for he, from the UG Managers and Volunteer, for becoming
an MVP! We all enjoyed the cake and then the enthu
didn't end there...

we all went to this place called Olivia and had a
great dinner! As sarang treating everyone for dinner We were discussing beserk things over dinner right from longhorn to a lady called gayatri deshpande! :)) There's a phrase in Hindi "Samazdar ko Ishara Kafi..." :))

And then we all saw each other off. Simply, it was a
wonderful day.

Sunday, October 03, 2004

Congralutation !!!! First MVP of Pune city

Congralutation !!!! Sarang
Congralutation !!!! Sarang
Congralutation !!!! Sarang


Hi

I'm so happy today! I think you know till now why ? yes !!!! my one of the good friend "Sarang" got the MVP award from microsoft. at last the day come for which I (and he too ) waiting for.

hey this my MSG to my group which I post just before few seconds :
It's my really great pleasure to announce that one of our PUG friend
Sarang Datye has been selected for the MVP (Microsoft Most Valuable
Professional)
in .NET, let's congratulate him heartly and wish him for
the best in future.

Congralutation !!!! Sarang || Congralutation !!!! Sarang ||
Congralutation !!!! Sarang