。如何在.cs文件中使用并获取Html 5日期输入值 [英] .How to use and get the Html 5 date input value in .cs file

查看:67
本文介绍了。如何在.cs文件中使用并获取Html 5日期输入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在html 5中有Date输入控件。我想在.cs文件中获取所选日期的值,任何人都可以帮助我如何做到这一点。





谢谢

Samar

Hi all,
In html 5 there is "Date" input control.I want to get the value of the selected date in .cs file can any one help me how can i do it.


Thanks
Samar

推荐答案

请参阅 - 为html5输入类型=日期渲染asp.TextBox [ ^ ]。
Refer - Render asp.TextBox for html5 input type="date"[^].


尝试 http://www.w3schools.com/aspnet/prop_webcontrol_calendarday_date.asp [ ^ ]。


您好b $ b

1.要么你将Date控件声明为服务器控件



2.将控件放在一个表单中,以便您可以通过请求obje访问它ct在服务器端。



[请鼓励通过投票解决方案或适合您的答案参与]
Hi
1. Either you declare the Date control as Server Control
OR
2. Place the control in a form so that you can access it via the request object on the server side.

[Please encourage participation by up-voting solutions or answers that work for you]


这篇关于。如何在.cs文件中使用并获取Html 5日期输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆