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
|
|
|
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
|
|
|
|