Interview FAQs

The ValidationSummary control allows you to summarize the error messages from all validation controls on a Web page in a single location. The summary can be displayed as a list, a bulleted list, or a single paragraph, based on the value of the DisplayMode property. The error message displayed in the ValidationSummary control for each validation control on the page is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed in the ValidationSummary control for that validation control. You can also specify a custom title in the heading section of the ValidationSummary control by setting the HeaderText property. You can control whether the ValidationSummary control is displayed or hidden by setting the ShowSummary property. The summary can also be displayed in a message box by setting the ShowMessageBox property to true.
1 Authentication/Authorization
2 Encryption/Decryption
3 Maintaining web servers outside the corporate firewall.
ViewState is the mechanism used by the ASP.Net to keep track of server control state values that do not otherwise post back as part of the HTTP form. ViewState Maintains the UI State of a web page.

ViewState is base64-encoded. It is not encrypted but it can be encrypted by setting EnableViewStatMAC="true" & setting the machineKey validation type to 3DES. If you want to not to maintain the ViewState, include the directive <%@ Page EnableViewState="false" %> at the top of an .aspx page or add the attribute EnableViewState="false" to any control.

Add reference to the System.Web assembly in your class and use the Current property of the HttpContext object to access the desired server variable. Like -
string value = (string)(HttpContext.Current.Session["someData"]);
.Net components communicate with COM components using RCW called Runtime Callable Wrapper. Following are the ways with which you can use RCW -

1. Adding reference using Visual Studio. Wrapper class is generated and placed in the BIN directory.
2. Using the type library importer tool - Tlbimp.exe.
3. Using Interopservices. System.Runtime.Interopservices namespace contains TypeLib Converter which provides methods to convert COM classes and interface in to assembly metadata.
3. Make your own custom wrappers.

The .Net framework object model and its workings are different from Component Object Model (COM) and its workings. For example, clients of .Net components do not have to worry about the lifetime of the object. Common Language Runtime (CLR) manages things for them. In contrast, clients of COM objects must take care of the lifetime of the object. Similarly, .Net objects live in the memory space that is managed by CLR. CLR can move objects around in the memory for performance reasons and update the references of objects accordingly, but COM object clients have the actual address of the object and depend on the object to stay on the same memory location.

Similarly, .Net runtime provides many new features and constructs to managed components. For example, .Net components can have parameterized constructors, functions of the components can have accessibility attributes (like public, protected, internal, and others) associated with them, and components can also have static methods. Apart from these features, there are many others. These include ones that are not accessible to COM clients because standard implementation of COM does not recognize these features. Therefore .NET runtime must put something in between the two, .Net server and COM client, to act as mediator.

.Net interoperability makes it easy to work with COM Capable Applications such as Word and Excel.
A Code Render block is block of code that:

1. is inline, interspersed with your HTML contents.
2. can execute code anywhere on the page as opposed to only in the script block.
3. Used <% .... %> as the delimeters.

The Session.Abandon() method destroyed the object stored in a Session object and releases their resources. If you do not call the Abandon method explicity, the server detroys these objects when the session times out.
PreviousDisplaying 30 of 46Next
Need Help? Contact Us.

Log in


Forgot password?


New User