This something I found out about ASP.NET 2.0, As I am not doing ASP.net 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)
document.getElementById('TextBoxEmpName').value you have to replace the above code line with..
document.getElementById('<%=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}".
[http://www.sumudusharp.blogspot.com/]
Comments
Post a Comment