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.

DatePicker Binding null reference

Thread ID:

Created:

Updated:

Platform:

Replies:

118487 Mar 12,2015 09:02 AM Mar 19,2015 06:24 AM ASP.NET Web Forms 8
loading
Tags: DatePicker
Manolo
Asked On March 12, 2015 09:02 AM

Hi,

I'm developing a page for edit values.

I've this code:

....
<td>
    <asp:DropDownList ID="ddlAAConGas" runat="server" SelectMethod="GetEmpresasGN" DataTextField="Nombre" DataValueField="IdEmpresa" SelectedValue='<%# Item.AAConGas %>' />
</td>
<td>
    <ej:DatePicker ID="dateFechaConcesionGND" runat="server" WatermarkText="Seleccione Fecha" DateFormat="dd/MM/yyyy" Value='<%# (Item.FechaConcensionGND) %>'/>
</td>
......
<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" />
</div>

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 08:13 AM

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:

http://www.syncfusion.com/downloads/support/directtrac/118487/DatepickerSample-497881357.zip

Please let us know if you have further queries.

Thanks,

Muralishankar



Manolo
Replied On March 16, 2015 04:01 AM

Hi,

I attach the modified project to reproduce my problem

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

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.

Regards,

Muralishankar


Manolo
Replied On March 17, 2015 03:53 AM

Sorry



Manolo
Replied On March 17, 2015 03:59 AM

Ups, the file is not attached!



I shared the file:

https://copy.com/fPYgfPF3zlVf1V71




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

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.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,

Muralishankar


Manolo
Replied On March 18, 2015 06:14 AM

Ok, Thank you!

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

Hi Manola,

Thanks for your update.

Kindly get back to us if you have further queries.

Regards,

Muralishankar


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.

;