|
|
-
|
|
There may be many cases where you'd like to have code clocks inside your masterpage's header. The most common scenario is when you want to reference CSS Stylesheet or Javascript using something as simple as ResolveUrl. The problem is, you can't just use......
|
|
-
|
|
Generally we can see project files in solution explorer but now you can also see properties and method defined in file. You double click on file it will open fine and take you directly to that method declaration.
Solution explorer also provides search ......
|
|
-
|
|
Few days back, had a discussion with friends about Fault exception and why it is preferred over other approaches. Just learned from Neeraj's blog that, WCF FaultException<T> generic class which can raise "SoapFault exception", which is technology ......
|
|
-
|
|
Timespan.Minutes will gives the minutes part of difference. (Suppose for a 2Hrs 10 Mins difference, it will gives 10mins)
Timespan.TotalMinutes will gives the Total Minutes difference. (Suppose for a 2Hrs 10 Mins difference, it will gives 130mins)
R......
|
|
-
|
|
Timespan.Minutes will gives the minutes part of difference. (Suppose for a 2Hrs 10 Mins difference, it will gives 10mins)
Timespan.TotalMinutes will gives the Total Minutes difference. (Suppose for a 2Hrs 10 Mins difference, it will gives 130mins)
R......
|
|
-
|
|
A recent requirement in the project states to find the previous quarters from the current one. Obviously how many quarters to be generated will be given.
Here is mine
[Code]
var currentQuarter = DateTime.Now.Month / 4 + 1;
......
|
|
-
|
|
If re-throwing an exception without adding additional information, use "throw" instead of "throw ex". An empty "throw" statement in a catch block will emit specific IL that re-throws the exception while preserving the original stack trace. "throw ex" lo......
|
|
-
|
|
Learned this from Eric Lippert's blog..
Most of us think that, Private members can't be inheritable. But in reality, they will be inherited, Just they will not be accessible. Suppose if your derived class is inside base class, then it can access bas......
|
|
-
|
|
I'm not giving a course on the adapter layer of ASP.Net but as a quick reminder: most of ASP.Net built-in webcontrols' rendering is affected by "browser capabilities".
So depending of the browser you're using the (X)HTML markeup renderend may differnt ......
|
|
-
|
|
CPU load is goes 100% it create a problem to run application so overcome this issue .Net 4.5 Introduce new setting like percentCpuLimit We can Set this setting in web.config.
The default value of the setting is 99%. To disable the throttling, set per......
|
|