|
|
-
|
|
I just learn that new feature in MVC 3.0 support [AllowHtml] Attribute using this we can input HTML text in input box for that we have to define
[code]
using System.Web.Mvc;
[/code]
Namespace in class where we use this attribute for particular prop......
|
|
-
|
|
We know that If a class is marked as "sealed", it can't be inherited by any other class. But coming to sealed methods There is a difference in behaviour. You can't directly mark a method as sealed. A sealed method should have the "override" modifier als......
|
|
-
|
|
'And' operator evaluates both expressions,
'AndAlso' evaluates the right side only if the left side is true.
For example, below code throw exception if StrandalsoTest is nothing
[code]
If StrandalsoTest IsNot Nothing And StrandalsoTest.Contai......
|
|
-
|
|
Recently learned this shortcut from my colleague. In visual studio, we can simply encapsulate a field. In a class add a field like below
[code]
private string _CustomerName;
[/code]
Now press Ctrl+R,E. It will show a dialog box with default prope......
|
|
-
|
|
Microsoft has had the tagline of "Your potential our passion" for quite some time and it was quite good, As spotted by 'Long Zheng', Microsoft has now filed a trademark to protect the new tagline. It's all about agility, anticipation, innovation, and th......
|
|
-
|
|
One limitation of output caching with ASP.NET V1->V3.5, though, is that the cache store itself is not extensible and it has to stored in in-memory to overcome this issue ASP.NET 4 adds an extensibility point to output caching that now enables develop......
|
|
-
|
|
In .net framework 3.5 sp1 and higher version, script manager has a property, "CompositeScript", which will combine multiple script file into single request. So page loading time will decrease and we can get better performance.
[code]
<asp:ScriptM......
|
|
-
|
|
Just learned from Eric Lippert's blog that, while storing string, it will initially store the length of that string in 4-bytes, then it will stores the each character of string in 2 byte chunks...
So, always string length comparison will benefit from......
|
|
-
|
|
Just learned that "controls disabled from the client side (in my case it was dropdownlist) is not maintaining state when page posts back". To resolve this problem, it requires to set SubmitDisabledControls property (added in .NET framework 2.0) of the f......
|
|
-
|
|
In my previous post, i mentioned that, to a delegate we can add a function repeatedly, say N times, then it will invoke that function also N times. What if we remove one instance from that? Will it removes the first added instance or recently added inst......
|
|