Web services are functions exposed by server-side applications. They are programmable units that other applications (and Web services) can access over the Internet.
More details can be found at:
http://www.roseindia.net/webservices/webservices.shtml
http://www.webopedia.com/TERM/W/Web_services.html |
There are three different techniques of managing session in ASP.NET
InProc
Session state is stored locally in memory of ASP.NET worker process.
StateServer
Session state is stored outside ASP.NET worker process and is managed by Windows service. Location of this service is specified by stateConnectionString attribute.
SQLServer
Session state is stored outside ASP.NET worker process in SQL Server database. Location of this database is represented by sqlConnectionString attribute.
For more details, please visit
http://shailkpatel.blogspot.com/2007/03/session-management-techniques.html895r |
The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:
Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).
View. The view manages the display of information.
Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
For more details and its implementaion, please see
http://www.c-sharpcorner.com/UploadFile/napanchal/MVCDesign12052005035152AM/MVCDesign.aspx
http://msdn2.microsoft.com/en-us/library/ms978748.aspx
http://msdn2.microsoft.com/en-us/library/ms998540.aspx |
Use following code to use Trace.Warn, Trace.Write etc.
System.Web.HttpContext.Current.Trace |
It's a command to install the assembly into the Global Assembly Cache. |
Converting a value type to reference type is called Boxing and Converting reference type of value type is Unboxing.
int i = 1;
object o = i; // boxing
int j = (int) o; // unboxing |
NOTE: This is objective type question, Please click question title for correct answer. |
|
Response.Expires
This property specifies the number of minutes before a page cached in the browser expires ie. if the user returns to the same page before the specified number of minutes the cached version of the page is displayed.
<% Response.Expires = minutes %>
Response.ExpiresAbsolute
Using this property we can set the date and/or time at which page cached in the browser expires.
<% Response.ExpiresAbsolute=#May 15, 1999 18:00:00# %> |
This is an execution engine for .NET Framework application. It provides a number of services including
1. Code Management
2. Application memory isolation
3. Verification of type safety
4. Conversion of IL to native code.
5. Access to meta data
6. Managing memory for managed objects
7. Enforcement of code access security
8. Exception handling, including cross-language exceptions.
9. Inter operation between managed code, COM objects and pre-existing DLLs (Unmanaged code and data)
10. Automation of object layout
11. Support for developer services (profiling, debugging etc.) |
function ShowHide(id)
{
document.getElementById(id).style.display == '' ? document.getElementById(id).style.display = 'none' : document.getElementById(id).style.display = '';
}
We can call this function like
<a href="#" onclick="ShowHide('divid')">Show/Hide</a>
If the "divid" is already displaying on the page it will hide if not it will show on the page and so on. |
Use the String class to concat, join or format methods to join multiple items in a single statement.
Use StringBuilder class to create dynamic strings. |
NOTE: This is objective type question, Please click question title for correct answer. |
String is a reference type variable. |
Below are all ValueTypes variables.
System.SByte,
System.Byte
System.Int16
System.Int32
System.Int64
System.Single
System.Double
System.Decimal
System.Char
System.Boolean
System.DateTime |
RCW : Runtime Collable Wrapper takes a COM component, wrap it up and allows .NET client to consume it.
CCW: COM Collable Wrapper wraps a .NET object for consumption by COM client |