Difference between Equals Method

Difference between == and .Equals Methods in C # sharp, use of == and .Equals Methods, real world example of == and .Equals Methods in C # sharp, live example of == and .Equals Methods C # sharp 

Difference between == and .Equals Method

Difference between == and .Equals Method

What are Access Modifiers in C Sharp

What are Access Modifiers in C# sharp, public specifier, Protected specifier, internal modifier, Protected Internal, live example of Access Modifiers in Asp .Net, Real world example of Access Modifiers in c# sharp

Access Modifiers in C#

Access Modifiers in C#

Difference between class and struct in C Sharp

Difference between class and struct in C#, real world code for class and struct in C#, real world example of class and struct in C#, class and struct in Asp .Net

class and struct in C# .Net

class and struct in C# .Net

Data Type in C sharp

Data Types Overview

Here we will discuss about the C# tutorial about data types.
Computer programs work with data. Spreadsheets, text editors, calculators or chat clients. Tools to work with various data types are essential part of a modern computer language. A data type is a set of values, and the allowable operations on those values
A data type can be described as being either:
  • A built-in data type, such as an int or char, or
  • A user-defined data type, such as a class or interface.
  • Data types can also be defined as being either:
  • Value Types (C# Reference), which store values, or
  • Reference Types (C# Reference), which store references to the actual data.

    Explain the data types in C#


    Explain the data types in C#
    Explain the data types in C#
    Explain the data types in C#, real world example of data type in c# sharp, live code for data type in c sharp, use of data type in c#

Difference between class and interface in C Sharp

Difference between class and interface in C#
 

Difference between class and interface in C# sharp, live code for class and interface, live example for interface and class, use of class and interface in dot net using c sharp
  
class and interface in C#
class and interface in C#

Const Keyword

The const keyword




What is const keyword, use of const keyword, live code for const keyword,
 live example of const keyword, const keyword in c# sharp

The const keyword
The const keyword
 

Read Only Fields in C#

Read Only Fields in C# , ReadOnly Fields in sharp, live example for Read Only Fields, live example code of Read Only Fields, how one can use read only fields in programming

 

Read Only Fields in C#

Read Only Fields in C#

 

 

const and static readonly

What is the difference between const and static readonly?

What is the differencebetween const and static read only, live C# code for const and static, live example for const and static, constant and static in programming

 

difference between const and static readonly
difference between const and static readonly

 

 

ASP Dot NET Page Life Cycle

Following Are The ASP.NET Page Life Cycle events

Page Event
Controls Initialized
Is ViewState Enabled
 When is this Event Raised
Logic

PreInit

No No After the start stage is complete and before the initialization stage begins This event can be used for the following:
1) Check the IsPostBack property. The IsCallback and IsCrossPagePostBack properties are also set at this time.
2) Create or re-create dynamic controls.
3) Set a master page dynamically.
4) Set the Theme property dynamically.
5) Read or set profile property values.
Note: If the request is a postback, the values of the controls have not yet been restored from view state.

Init

Not guaranteed No After all controls have been initialized and any skin settings have been applied. The Init event of individual controls occurs before the Init event of the page. This event can be used to read or initialize control properties.

InitComplete

Not guaranteed Yes At the end of the page’s initialization stage.
Only one operation takes place between the Init and InitComplete events: tracking of view state changes is turned on. View state tracking enables controls to persist any values that are programmatically added to the ViewState collection.
This event can be used to make changes to view state that you want to make sure are persisted after the next postback.

LoadViewState

Not guaranteed Yes This event happens only at postbacks
The Viewstate which has been saved in the __VIEWSTATE during the previous page visit (via the SaveViewState event) is loaded and then populated into the control hierarchy.

LoadPostbackdata

Not guaranteed Yes This event happens only at postbacks
During this event, the posted form data is loaded into the appropriate controls.

PreLoad

Yes Yes After the page loads view state for itself and all controls, and after it processes postback data that is included with the Request instance.

Load

Yes Yes
The Page object calls the OnLoad method on the Page object, and then recursively does the same for each child control until the page and all controls are loaded. The Load event of individual controls occurs after the Load event of the page.
The OnLoad event can be used to set control properties and database connections.

Control events

Yes Yes Raised at the end of the event-handling stage.
These events can be used to handle specific control events, such as a Button control’s Click event or a TextBox control’s TextChanged event.
Note: In a postback request, if the page contains validator controls, check the IsValid property of the Page and of individual validation controls before performing any processing.

LoadComplete

Yes Yes Raised after the Page object has created all controls that are required in order to render the page, including child controls of composite controls.This event can be used for tasks that require that all other controls on the page be loaded.

PreRender

Yes Yes

The Page object raises the PreRender event on the Page object, and then recursively does the same for each child control. The PreRender event of individual controls occurs after the PreRender event of the page.

 The event can be used to make final changes to the contents of the page or its controls before the rendering stage begins.

PreRenderComplete

Yes Yes
Raised after each data bound control whose DataSourceID property is set calls its DataBind method.

SaveStateComplete

Yes Yes
Raised after view state and control state have been saved for the page and for all controls.
Any changes to the page or controls at this point affect rendering, but the changes will not be retrieved on the next postback.

Render

Yes Yes This is not an event; instead, at this stage of processing, the Page object calls this method on each control. All ASP.NET Web server controls have a Render method that writes out the control’s markup to send to the browser.


If you create a custom control, you typically override this method to output the control’s markup. However, if your custom control incorporates only standard ASP.NET Web server controls and no custom markup, you do not need to override the Render method.
We do not need to explicitly render the control in code because a user control automatically incorporates rendering.

Unload

Yes Yes Raised for each control and then for the page.
This event can be used to do final cleanup for specific controls, such as closing control-specific database connections.
Note: During the unload stage, the page and its controls have been rendered, so you cannot make further changes to the response stream. If you attempt to call a method such as the Response.Write method, the page will throw an exception.

Difference in multiple Int32

What is Difference between Int32.Parse(), Convert.ToInt32(), and Int32.TryParse()

Difference between Int32.Parse(), Convert.ToInt32(), and Int32.TryParse(), live code for Int32.Parse(), Convert.ToInt32(), and Int32.TryParse(), live example for Int32.Parse(), Convert.ToInt32(), and Int32.TryParse() 

Int32.parse
Int32.parse
TryParse
TryParse

delegates and interfaces

What is the Difference between delegates and interfaces 

What is the Difference between delegates and interfaces, delegates and interface in asp.net, live example of delegates and interface, use of delegates and interface, working code of delegates and interface

Differentiate between delegates and interfaces
Differentiate between delegates and interfaces

 

How Shadowing is different to Overriding

How Shadowing is different to Overriding Differentiatebetween Shadowing and Overriding c# code for shadowing and overriding live exampleof shadowing and overriding in asp .net importance of shadow and overriding

 

How Shadowing is different to Overriding
How Shadowing is different to Overriding

 

Real world example or live code for overriding
Real world example or live code for overriding