DateTimeFormatInfo.MonthNames is a useful property to fetch the culture-specific full names of the month. This property gets a string array containing the names of the month. Remember to add a reference to the System.Globalization namespace.
Here’s how to use this property and populate a DropDownList with month names:
string[] names = DateTimeFormatInfo.CurrentInfo.MonthNames;
DropDownList1.DataSource = names;
DropDownList1.DataBind();
Subscribe to:
Post Comments (Atom)
Ajax CalendarExtender displaying at wrong position in Chrome
< script type ="text/javascript" language ="javascript"> function onCalendarShown(sender, args)...
-
Suppose FieldName is the Bit field which tells whether the link should be visible true or false so design your gridview template like th...
-
If you are using the built-in ASP.net Validation Controls such as the RequiredFieldValidator or the RegularExpressionValidator to validate ...
-
There are various ways using which you can navigate back to the previous page. To keep the example short and simple, I will be using two ...
No comments:
Post a Comment