What is called a "Control State" in asp.net ?

Sunday, May 23, 2010


Even when EnableViewState is set to false, the control can still hold some smaller data, which is called as "control state".


www.codecollege.NET

Daily Tips- Tip #50 - How to do DOM inspection, HTTP tracing ,etc with IE (IE 8 has these features, this tool is for earlier versions)?


you can download and use the "Web Development Helper" tool available in the following link,

WebDevHelper



www.codecollege.NET

Daily Tips- Tip #49 - How to add a "TODO" task list in VS ?


Type the comment marker (//) followed by the word TODO where ever you want in the .cs or .vb file. Then it will appear in the Task List window. Later on you can see all the todo list you have added and then do the task correspondingly.


www.codecollege.NET

How do we configure "WebGarden"?


"Web garden" can be configured by using process model settings in "machine.config" or "Web.config" file. The configuration section is named and is shown in the following example. The process model is enabled by default enable="true"). Below is the snippet from config file.


enable="true"
timeout="infinite"
idleTimeout="infinite"
shutdownTimeout="0:00:05"
requestLimit="infinite"
requestQueueLimit="5000"
memoryLimit="80"
webGarden="false"
cpuMask="12"
userName=""
password=""
logLevel="errors"
clientConnectedCheck=”0:00:05"
/>

From the above processModel section for web garden we are concerned with only two attributes "webgarden" and "cpuMask".

webGarden : Controls CPU affinity. True indicates that processes should be affinitized to the corresponding CPU. The default is False.

cpuMask : Specifies which processors on a multiprocessor server are eligible to run ASP.NET processes. The cpuMask value specifies a bit pattern that indicates the CPUs eligible to run ASP.NET threads. ASP.NET launches one worker process for each eligible CPU. If webGarden is set to false, cpuMask is ignored and only one worker process will run regardless of the number of processors in the machine. If webGarden is set to true, ASP.NET launches one worker process for each CPU that corresponds to a set bit in cpuMask. The default value of cpuMask is 0xffffffff.

Use 1 for the processor that you want to use for ASP.NET. Use 0 for the processor that you do not want to use for ASP.NET. For example, if you want to use the first two processors for ASP.NET of a four-processor computer, type 1100.


www.codecollege.NET
Blog Widget by LinkWithin