Can you inherit a COM class in a .NET application?

The .NET Framework extends the COM model for re-usability by adding implementation inheritance. Managed types can derive directly or indirectly from a COM coclass; more specifically, they can derive from the runtime callable wrapper generated by the runtime. The derived type can expose all the method and properties of the… Continue reading

Different types of Session state management options available with ASP.NET?

ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a “sticky-server” (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external… Continue reading

An assembly and its benefits and Assembly Versioning

Assemblies are fundamental part of programming in .NET Framework. Assembly performs various functions: It forms a version boundary. The assembly is the smallest versionable unit in the common language runtime; all types and resources in the same assembly are versioned as a unit. The assembly’s manifest describes the version dependencies… Continue reading

What does the "EnableViewState" property do in ASP.Net Controls? Why would I want it on or off?

It enables the ViewState on the page. It allows the page to save the users input on a form. Enable ViewState Property turns on the automatic state management feature that enables server controls to re-populate their values on a round trip without requiring you to write any code. This feature… Continue reading

Calling Server Code by using javascript

Implementing Client Callbacks Programmatic Without Post-backs in ASP.NET Web Pages How can we call c# server side code by using java-script. Here i am given you an example in which i described that how to call it Use this code in aspx page <html xmlns=””> <head runat=”server”> <title></title> </head> <script type=”text/javascript”> function ReceiveServerData(arg, context)… Continue reading