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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DatePicker Binding null reference

Thread ID:





118487 Mar 12,2015 01:02 PM UTC Mar 19,2015 10:24 AM UTC ASP.NET Web Forms 8
Tags: DatePicker
Asked On March 12, 2015 01:02 PM UTC


I'm developing a page for edit values.

I've this code:

    <asp:DropDownList ID="ddlAAConGas" runat="server" SelectMethod="GetEmpresasGN" DataTextField="Nombre" DataValueField="IdEmpresa" SelectedValue='<%# Item.AAConGas %>' />
    <ej:DatePicker ID="dateFechaConcesionGND" runat="server" WatermarkText="Seleccione Fecha" DateFormat="dd/MM/yyyy" Value='<%# (Item.FechaConcensionGND) %>'/>
<div align="center">
    <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClick="btnAceptar_Click" Width="100" />
    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" Width="100" />

The page load values perfectly, but when I click on btnAceptar, I get an exception: "System.NullReferenceException' in App_Web_btt5vogx.dll" on datepicker control, the item is null, but Drop Down List load data perfectly.

Ah, The property FechaSolicitudGND is DateTime?

Any idea?

Muralishankar Sundaram [Syncfusion]
Replied On March 13, 2015 12:13 PM UTC

Hi Manolo,

Thanks for using Syncfusion Products.

We are unable understand your use case scenario and unable reproduce the reported exception from the Datepicker control. Could you please confirm your use case scenario, whether you are using Datepicker control inside of a FormView and then tried to bind the value to this control or did you tried to get the value from DatePicker in code behind.

Please share us the issue reproducing sample with reproducing steps, otherwise modify the attached sample and share the same with us that would be helpful for us to analyze the problem and provide you prompt solution ASAP.

We have prepared the sample for accessing DatePicker value from the code-behind. Please find the sample in a below link:


Please let us know if you have further queries.



Replied On March 16, 2015 08:01 AM UTC


I attach the modified project to reproduce my problem

Muralishankar Sundaram [Syncfusion]
Replied On March 17, 2015 05:16 AM UTC

Hi Manolo.

Thanks for your update.

The attachment is missing in your last update, so please kindly share the issue reproducing sample with us for analyzing your problem and providing better solution It ASAP.

Please let us know if you have any other concerns.



Replied On March 17, 2015 07:53 AM UTC


Replied On March 17, 2015 07:59 AM UTC

Ups, the file is not attached!

I shared the file:


Muralishankar Sundaram [Syncfusion]
Replied On March 18, 2015 09:57 AM UTC

Hi Manolo,

Thanks for sharing the sample.

We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.


Please let me know if you have any questions.



Replied On March 18, 2015 10:14 AM UTC

Ok, Thank you!

Muralishankar Sundaram [Syncfusion]
Replied On March 19, 2015 10:24 AM UTC

Hi Manola,

Thanks for your update.

Kindly get back to us if you have further queries.




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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon