Friday, February 9, 2007

Something I ran into

This something I found out about ASP.NET 2.0, As I am not doing at the moment, I thought of just logging this, incase I may need it.

You can not simply address a control in java script. (I am using Master page) 
TextBoxEmpName').value you have to replace the above code line with..
'<%=TextBoxEmpName.ClientID %>').value

If you use GridView and  you have a  " Date " field column that you want to format it using 
DataFormatString="{0:d}" , this won't happen unless you change the property HtmlEncode="false".

Actually this is not an issue, this is what my friend Sanjaya has found, for 24 hour display time column field you have to use formating string as DataFormatString="{0:HH:mm}".






No comments:

Post a Comment