CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Sending date via URL: Unable to parse the 'Value' argument or cast it to the System.DateTime type

Print topic Send  topic

Author Message
Mukul


Posts: 53
Posted: 10/31/2007, 3:57 AM

Hi,
I have 2 primary keys, one is a_id and other is fof_a_date.


Application set is: Asps c# on IIS and mssql 2005.. (a_id is integer and fof_a_date is datetime)

So to modify the data, i have to send the values in url.
http://localhost/lg/FOF_A.aspx?a_id=57&fof_a_date=31%2f...fof_a_dtDir=Asc

But getting the following error:

Line 318: this.Value=Convert.ToDateTime(value);
Line 319: }catch{
Line 320: throw new ArgumentException("Unable to set value for the Date field: Unable to parse the 'Value' argument or cast it to the System.DateTime type");
Line 321: }
Line 322: }

Hoping for a positive reply.

Thanks,
Mukul
View profile  Send private message
dragoon


Posts: 173
Posted: 11/17/2007, 1:58 AM

use the ISO format for the date: yyyy-mm-dd, this is the most suitable format to use in URL
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.