We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

what is datetimepicker value on a form post?

Thread ID:

Created:

Updated:

Platform:

Replies:

128046 Dec 28,2016 11:25 AM Jan 2,2017 07:49 AM ASP.NET Web Forms 1
loading
Tags: DateTimePicker
Thomas Moore
Asked On December 28, 2016 11:25 AM

For the control:

<ej:DateTimePicker ID="txtArrive" TimePopupWidth="150" TimeDisplayFormat="h:mm tt" Width="280px" DateTimeFormat="MM/dd/yyyy h:mm tt" Interval="5" runat="server"></ej:DateTimePicker>


How do I get the value in the code behind.

txtArrive.value does not work.



Prem Kumar Madhan Raj [Syncfusion]
Replied On January 2, 2017 07:49 AM

Hi Thomas Moore, 

Thanks for using Syncfusion products, 
 
We have analyzed your sample. To get the value from control, using ID, we can use the code as like in below code example. Here the Value property need to be represent with proper casing(Value) since it’s a case sensitive one. 

So, to get the value of control in code behind, please use txtArrive.Value as like in below code example. 
 
 
<ej:DateTimePicker ID="txtArrive" TimePopupWidth="150" TimeDisplayFormat="h:mm tt" Width="280px"DateTimeFormat="MM/dd/yyyy h:mm tt" Interval="5" runat="server"></ej:DateTimePicker> 
 
 
  protected void Page_Load(object sender, EventArgs e) 
        { 
        DateTime? str = txtArrive.Value; 
    } 
 
 
 
Please let us know if you have further queries, 
 
Regards, 

Prem Kumar Madhan Raj. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;