What is Windows communication foundation, WCF?

Thursday, August 6, 2009


WCF (Windows Communication Foundation) offers Distributed Programming through Service Oriented Programming Model.


www.codecollege.NET

How to access ViewState value of the previous page in the current page ?


Previous page's information is stored in a property called PreviousPage and you can access it using the following code,
Page prePage = this.PreviousPage;
Label totalEmployees = prePage.FindControl("lblTotEmployees");
Response.Write(totalEmployees.Text);


www.codecollege.NET

What are the differences between Cache object and Application object ?






















Sno Application
Cache
1 Life of Application objects are till the end of Application
unless you destroy it.
Also provides application-wide scope but get destroyed by
expiration mechanism.
2 You have Locking mechanism in Application object Not available.
3 Not available. Has a feature called SQL Cache dependency using which you
can invalidate a cache object based on the changes to its source in the
table

What is marshalling? What are the types of marshalling?


Marshalling is the process in which the data is serialized at one application domain and deserialized at the another application domain or vice versa.
Types :
1. Marshal by value
2. Marshal by reference


www.codecollege.NET


What data type does the RangeValidator supports ?


Integer, String and Date .


www.codecollege.NET

Can Partial Classes be applied over an enumerator ?


No.


www.codecollege.NET

Can Partial Classes be applied over a Delegate ?


No.


www.codecollege.NET
Blog Widget by LinkWithin