I have a GridBoundColumn with this property
DataFormatString="{0:dd-MMM-yyyy hh:mm:ss tt}"
This works nicely...BUT...I have an application setting variable with this so if the format changes I don't have to change it in a million places. It is this variable:
MyWeb.Properties.Settings.Default.DateFormatString
NOT in the codebehind...Is there any way to replace the string with a server variable or something in the aspx? Maybe some <%= %> or eval or other method?
DataFormatString="{0:dd-MMM-yyyy hh:mm:ss tt}"
This works nicely...BUT...I have an application setting variable with this so if the format changes I don't have to change it in a million places. It is this variable:
MyWeb.Properties.Settings.Default.DateFormatString
NOT in the codebehind...Is there any way to replace the string with a server variable or something in the aspx? Maybe some <%= %> or eval or other method?