<%@ Page culture="your culture here" %>
Or by setting it up in the page load event:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Page.Culture = "your culture here"; } }
For example if you want to validate a date in Australian Date Format, which is dd/MM/yyyy, you can do:
<%@ Page culture="en-AU" %>
Or:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Page.Culture = "en-AU"; } }
No comments:
Post a Comment