<< < 28 29 30 31 32 33 34 35 36 37 38 > >>   Sort: Rank

Where is ViewState information stored
Where is ViewState information stored ? In HTML Hidden Fields.
2007-10-24, 4638👍, 0💬

What is AppSetting Section in “Web.Config” file
What is AppSetting Section in “Web.Config” file ? Web.config file defines configuration for a webproject. Using “AppSetting” section we can define user defined values. Example below defined is “ConnectionString” section which will be used through out the project for database connection. &lt;co...
2007-10-24, 4852👍, 0💬

What’s the use of SmartNavigation property
What’s the use of SmartNavigation property ? It’s a feature provided by ASP.NET to prevent flickering and redrawing when the page is posted back. Note:- This is only supported for IE browser. Project’s who have browser compatibility as requirements have to think some other ways of avoiding flickeri...
2007-10-24, 5342👍, 0💬

What is the use of @ Register directives
What is the use of @ Register directives ? @Register directive informs the compiler of any custom server control added to the page.
2007-10-24, 5494👍, 0💬

If we want to make sure that no one has tampered with ViewState, how do we ensure it
If we want to make sure that no one has tampered with ViewState, how do we ensure it? Using the @Page directive EnableViewStateMac to True.
2007-10-24, 5093👍, 0💬

What is event bubbling
What is event bubbling ? Server controls like Datagrid, DataList, Repeater can have other child controls inside them. Example DataGrid can have combo box inside datagrid. These child control do not raise there events by themselves, rather they pass the event to the container parent (which can be a d...
2007-10-24, 5077👍, 0💬

How can we identify that the Page is PostBack
How can we identify that the Page is PostBack ? Page object has a “IsPostBack” property which can be checked to know that is the page posted back.
2007-10-24, 5894👍, 0💬

In which event are the controls fully loaded
In which event are the controls fully loaded ? Page_load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that viewstate is not fully loaded during this event.
2007-10-24, 7306👍, 0💬

What’ is the sequence in which ASP.NET events are processed
What’ is the sequence in which ASP.NET events are processed ? Following is the sequence in which the events occur :- ? Page_Init. ? Page_Load. ? Control events ? Page_Unload event. Page_init event only occurs when first time the page is started, but Page_Load occurs in subsequent request of the page...
2007-10-24, 6747👍, 0💬

What is the difference between System.String and System.StringBuilder classes
What is the difference between System.String and System.StringBuilder classes? System.String is immutable; System.StringBuilder can have mutable string where a variety of operations can be performed.
2007-10-23, 5299👍, 0💬

Can two catch blocks be executed
Can two catch blocks be executed? No, once the proper catch section is executed the control goes finally to block. So there will not be any scenarios in which multiple catch blocks will be executed.
2007-10-23, 7156👍, 0💬

Can we have static indexer in C#
Can we have static indexer in C# ? No.
2007-10-23, 7045👍, 0💬

What is Indexer
What is Indexer ? An indexer is a member that enables an object to be indexed in the same way as an array.
2007-10-23, 5982👍, 0💬

If we write a goto or a return statement in try and catch block will the finally block execute
If we write a goto or a return statement in try and catch block will the finally block execute ? The code in then finally always run even if there are statements like goto or a return statements.
2007-10-23, 5752👍, 0💬

Can we have different access modifiers on get/set methods of a property
Can we have different access modifiers on get/set methods of a property ? No we can not have different modifiers same property. The access modifier on a property applies to both its get and set accessors.
2007-10-23, 5540👍, 0💬

In what instances you will declare a constructor to be private
In what instances you will declare a constructor to be private? When we create a private constructor, we can not create object of the class directly from a client. So you will use private constructors when you do not want instances of the class to be created by any external client. Example UTILITY f...
2007-10-23, 5590👍, 0💬

How do I force the Dispose method to be called automatically , as clients can forget to call Dispose method
How do I force the Dispose method to be called automatically, as clients can forget to call Dispose method? Call the Dispose method in Finalize method and in Dispose method suppress the finalize method using GC.SuppressFinalize. Below is the sample code of the pattern. This is the best way we do cle...
2007-10-23, 8315👍, 0💬

What is the use of DISPOSE method
What is the use of DISPOSE method? Dispose method belongs to IDisposable interface. We had seen in the previous section how bad it can be to override the finalize method for writing the cleaning of unmanaged resources. So if any object wants to release its unmanaged code best is to implement IDispos...
2007-10-23, 5567👍, 0💬

How can we suppress a finalize method
How can we suppress a finalize method? GC.SuppressFinalize ()
2007-10-23, 6276👍, 0💬

Why is it preferred to not use finalize for clean up
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collection has to make two rounds in order to remove objects which have finalize methods. Below figure will make things clear regarding the two rounds of garbage collection rounds performed for the objects ha...
2007-10-23, 6790👍, 0💬

What is the significance of Finalize method in .NET
What is the significance of Finalize method in .NET? .NET Garbage collector does almost all clean up activity for your objects. But unmanaged resources (ex: - Windows API created objects, File, Database connection objects, COM objects etc) is outside the scope of .NET framework we have to explicitly...
2007-10-23, 7163👍, 0💬

In below sample code if we create a object of class2 which constructor will fire first
In below sample code if we create a object of class2 which constructor will fire first? Public Class Class1 Sub New() End Sub End Class Public Class class2 Inherits Class1 Sub New() End Sub End Class
2007-10-23, 8385👍, 0💬

What is Operator Overloading in .NET
What is Operator Overloading in .NET? It provides a way to define and use operators such as +, -, and / for user-defined classes or structs. It allows us to define/redefine the way operators work with our classes and structs. This allows programmers to make their custom types look and feel like simp...
2007-10-23, 5417👍, 0💬

What is nested Classes
What is nested Classes ? Nested classes are classes within classes. In sample below “ClsNested” class has a “ChildNested” class nested inside it. Public Class ClsNested Public Class ChildNested Public Sub ShowMessage() MessageBox.Show(“Hi this is nested class”) End Sub End Class End Class This is ...
2007-10-23, 5432👍, 0💬

<< < 28 29 30 31 32 33 34 35 36 37 38 > >>   Sort: Rank