How will you know whether the page request is the result of a callback?

Monday, July 13, 2009


By calling

IsCallBack();


www.codecollege.NET

Daily Tips- Tip #4 - How will you know whether the page is posted back or not?


By calling,

IsPostBack();



www.codecollege.NET

Can we have different access modifiers on get and set?


By calling

No. For a property access modifier is same for get and set.


www.codecollege.NET

How will you suppress the finalize method?


By calling

GC.SuppressFinalize();


www.codecollege.NET

What are the differences between Classes and Structures?
































Sno Class Structure
1 Reference Type Value Type
2 Stored in heap Stored in stack
3 Inheritance is available Not
4 Protected Modifier is allowed Not
5 Construtor is mandatory Not
5 Objects are destroyed in GC Not


 

What is SQL Cache Dependency in ASP.NET?


Is a feature which invalidates your cache when its dependent database table is changed. That is you cache some data from a table and the cache will automatically get invalidated when anything is changed in the table.


www.codecollege.NET

What are all the ways you can maintain state in asp.net?


Server-side:
1. Session
2. Application
3. Cache

Client-side:
1. Hidden fields
2. Hidden frames
3. View state
4. Cookies
5. Query String


www.codecollege.NET
Blog Widget by LinkWithin