本文介绍了Text 4.5中的文本Text 4.5中的Time属性无法在Code Behind中设置值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在aspx方面有这个: < asp:TextBox runat =serverID =txtBoxStartTimeTextMode =Time> C#代码背后 protected void Page_Load(object sender,EventArgs e) { txtBoxStartTime.Text = project.ActivationDate.ToString(hh:mm tt); } 仍未显示UI上的TextBox。 我注意到问题与Framework 4.5上的所有Textmode Time属性相同 有关此问题的任何建议/解决方案吗?我非常感谢你的投入! 谢谢!I have this on aspx side: <asp:TextBox runat="server" ID="txtBoxStartTime" TextMode="Time">C# code behind protected void Page_Load(object sender, EventArgs e) { txtBoxStartTime.Text = project.ActivationDate.ToString("hh:mm tt"); }Still does not show in TextBox on UI.I've noticed the problem is the same with all of the Textmode Time Property on Framework 4.5Any suggestions/solutions on this? I truly appreciate your input!Thanks!推荐答案 这篇关于Text 4.5中的文本Text 4.5中的Time属性无法在Code Behind中设置值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-11 19:57