Australian or British Date format in ASP.NET

Having problems with dates appearing in US format (mm/dd/yyyy) and not British or Australian format (dd/mm/yyyy)? Are you getting the famous “Invalid datetime format” error? If your British, whack the following in your web.config file. Else if you’re Australian, use the following. Also,...

eWorld Calander manual input

Do you use the eWorld calander control and want to allow your users to input the dates manually as well as allow selection from the calander popup? Try using the following option. DisableTextboxEntry = False Did you like this? Share it:Tweet

Setting a default list item in a drop down list

Ever wanted to add a default “select” item to a listbox after a databind? The following should do the trick. DropDownList1.DataSource = YourDataSet; DropDownList1.DataBind(); // Add Default list item at index 0 DropDownList1.Items.Insert(0, new ListItem("- select -", "0")); This adds a...

Next Entries »