DotNet FrameWork – Check Posting of Page – system.xml Namesapce – Multiple Inheritance – Managed and Unmanaged Code – Globalization and Localization – Day 21 of 30

What is the property available to check if the page posted or not?

The Page_Load event handler in the page checks for IsPostBack property value, to ascertain whether the page is posted. The Page.IsPostBack gets a value indicating whether the page is being loaded in response to the client postback, or it is for the first time. The value of Page.IsPostBack is True, if the page is being loaded in response to the client postback; while its value is False, when the page is loaded for the first time. The Page.IsPostBack property facilitates execution of certain routine in Page_Load, only once (for e.g. in Page load, we need to set default value in controls, when page is loaded for the first time. On post back, we check for true value for IsPostback value and then invoke server-side code to update data).

 

Which are the abstract classes available under system.xml namespace?

The System.XML namespace provides XML related processing ability in .NET framework. XmlReader and XMLWriter are the two abstract classes at the core of .NET Framework XML classes:

 

1. XmlReader provides a fast, forward-only, read-only cursor for processing an XML document stream.

2. XmlWriter provides an interface for producing XML document streams that conform to the W3C’s XML standards.

 

Both XmlReader and XmlWriter are abstract base classes, which define the functionality that all derived classes must support.

 

Is it possible to use multipe inheritance in .net?

Multiple Inheritance is an ability to inherit from more than one base class i.e.  ability of a class to have more than one superclass, by inheriting from different sources and thus combine separately-defined behaviors in a single class. There are two types of multiple inheritance: multiple type/interface inheritance and multiple implementation inheritance. C# & VB.NET supports only multiple type/interface inheritance, i.e.

you can derive an class/interface from multiple interfaces. There is no support for multiple implementation inheritance in .NET. That means a class can only derived from one class.

 

What are the derived classes from xmlReader and xmlWriter?

Both XmlReader and XmlWriter are abstract base classes, which define the functionality that all derived classes must support.

There are three concrete implementations of XmlReader:

1.XmlTextReader

2.XmlNodeReader

3.XmlValidatingReader

There are two concrete implementations of XmlWriter:

1.XmlTextWriter

2.XmlNodeWriter

XmlTextReader and XmlTextWriter support reading data to/from text-based stream, while XmlNodeReader and XmlNodeWriter are designed for working with in-memory DOM tree structure. The custom readers and writers can also be developed to extend the built-in functionality of XmlReader and XmlWriter.

 

What is managed and unmanaged code?

The .NET framework provides several core run-time services to the programs that run within it – for example exception handling and security. For these services to work, the code must provide a minimum level of information to the runtime. i.e., code executing under the control of the CLR is called managed code. For example, any code written in C# or Visual Basic .NET is managed code.

 

Code that runs outside the CLR is referred to as “unmanaged code.” COM components, ActiveX components, and Win32 API functions are examples of unmanaged code.

 

How you deploy .NET assemblies?

One way is simply use xcopy. others are use and the setup projects in .net. and one more way is use of nontuch deployment.

 

What is Globalizationa and Localization ?

Globalization is the process of creating an application that meets the needs of users from multiple cultures. It includes using the correct

currency, date and time format, calendar, writing direction, sorting rules, and other issues. Accommodating these cultural differences in an application is called localization.Using classes of System.Globalization namespace, you can set application’s current culture.

 

This can be achieved by using any of the following 3 approaches.

1.      Detect and redirect

2.      Run-time adjustment

3.      Using Satellite assemblies.

Please read all the post in the Dotnet Framework series.

Reference : Dilip Kumar Jena ( https://mstechexplore.wordpress.com )

 

Advertisements

3 thoughts on “DotNet FrameWork – Check Posting of Page – system.xml Namesapce – Multiple Inheritance – Managed and Unmanaged Code – Globalization and Localization – Day 21 of 30

  1. Pingback: DotNet FrameWork – Dot Net Basics Complete Series Reference – Day 0 of 30 « Exploring Dot Net with Dilip Kumar Jena

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s