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.

re: Drop Down Calendar binding and null value

Thread ID:

Created:

Updated:

Platform:

Replies:

50060 Oct 4,2006 01:56 PM Oct 17,2006 10:53 AM ASP.NET Web Forms (Classic) 4
loading
Tags: Tools
Melissa
Asked On October 4, 2006 01:56 PM

I have a drop down calendar in a formview that I am binding to a SQL Data Source. The code is:

'' Format="Short" Height="17px" Width="224px" runat="server" />

The problem is that when I try to open the form for an insert when DatePurchased doesn''t have a value yet I get:

Conversion from type ''DBNull'' to type ''Date'' is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

I thought that adding IsNullDate="true" and EnableNullDate="true" would fix it, but it has not.

Administrator [Syncfusion]
Replied On October 5, 2006 08:16 AM

Hi Melissa,

Attached is a sample project as per your requirement. I have created this sample with 4.3.0.30 version.



DDCalFormViewSample.zip



Please let us know if you have any further queries.

Thanks
Sharmila

Melissa
Replied On October 10, 2006 09:12 AM

This doesn''t do entirely what I want. Your code prevents the error, but it inserts in todays date in its place and I don''t want todays date to be there I want there to be no value at all in the drop down.

Thanks,
Melissa

>Hi Melissa,

Attached is a sample project as per your requirement. I have created this sample with 4.3.0.30 version.



DDCalFormViewSample.zip



Please let us know if you have any further queries.

Thanks
Sharmila

Administrator [Syncfusion]
Replied On October 11, 2006 10:24 AM

Hi Melissa,

We are looking into this, we will get back to you soon.

Regards,
Sharmila

Administrator [Syncfusion]
Replied On October 17, 2006 10:53 AM

Hi Melissa,

A bug report has been logged for this issue. You can refer to this at:

http://www.syncfusion.com/support/issues/tools/Default.aspx?ToDo=view&questId=2862


We will update you once its implemented.

Thanks,
G.Pradeep.


>Hi Melissa,

We are looking into this, we will get back to you soon.

Regards,
Sharmila

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.

;