How can I define a Hashtable to store session variable?
We can define a hashtable to store a session variable as Session[‘sessionVaribale’]=new Hashtable(); Then the values can be stored as ((Hashtable)Session[‘sessionVariable’])[‘hashKey’]=’value1′;
How can session expire time can be set?
The session will normally expire in 20 minutes. To set the session expire time add the following code to Gloabl.asax void Session_Start(object sender, EventArgs e) { Session.Timeout = 60; }
What is ‘Caching’?
Caching refers to the strategy of keeping a copy of a page or image you have already seen.Web browsers typically cache files that they display for you, and simply ask the server if the page has actually changed rather than always downloading the entire thing. This speed up the visit to the page. Web browsers typically delete the least recently used file in the cache , since caching could consume too much of space.
What is AJAX?
AJAX stand for – Asynchronous JavaScript + XML. Ajax applications inevitably involve running complex JavaScript code on the client. Making that complex code efficient and bug-free is not a task to be taken lightly, and better development tools and frameworks will be needed to help us meet that challenge. For further information visit this link.
How the computer’s name,OSVersion,Memory Working set can be identified using ASP.NET?
The name of the computer can be identified by the following code- Response.Write(‘The MachineName is ‘ & System.Environment.MachineName.ToString()) //The OSVersion can be identified by the following code- Response.Write(System.Environment.OSVersion.ToString()); //The Memory Working set can be identified by the following code- Response.Write(System.Environment.WorkingSet.ToString());