An efficient way to display one alert box or multiple without the Access is denied error in winjs. A MessageDialog is fired asynchronously, so one needs to be cancelled before firing a second one. I will actually split this in 2 ways. One way is for coding multiple MessageDialogs at once. The other way is […]
According to msdn, you can define symbols/constants for the c# compiler and use them in your code as compile conditions using the #if directive. Those symbols can be used to specify conditions for compilation. However, CSHTML (MVC Razor), ASPX (WebForms) and other ASP.NET pages do not recognize project level compilation symbols. These directives are compile […]
How to correctly display the value of a parent-child relationship and also be able to select items on the DropDownList in ASP.NET Dynamic Data web application? This method will work with either a recursive or hierarchical relationship between a table and itself, or a relationship between two different tables or entities. It also works with either Entity Framework or Linq To […]
Converts from enum to string, from enum type to a list of enums, and from string to enum in C# 1st step: Add the description for each enum value: Here are the conversion methods (returns ArgumentException if not found / type is invalid):
How to use the watermark extender on a styled textbox/textarea with CSS? Just add the CSS onto the watermark extender WatermarkCssClass property along with the watermark CSS.