Are you validating the entry before the cast occurs?

My guess would be that someone is entering a string that couldn't possible
be a date.

Try using a compare validator on the date entry field:

Set the validator's "Operator" parameter to "DataTypeCheck" and its "Type"
to "Date".

(This will validate the text box client side. To make sure a browser that
doesn't support client side validation doesn't still submit a non-date also
check Page.IsValid before submitting to database.)

I hope this helps,

--
S. Justin Gengo, MCP
Web Developer / Programmer

Free Code Library At:
[url]www.aboutfortunate.com[/url]

"Out of chaos comes order."
Nietzche


"Vrushal" <vsvartak@yahoo.com> wrote in message
news:007501c34bb9$4768f680$a401280a@phx.gbl...
> Hi Guys..
>
> I m getting error "Cast From String to Date Not Valid"
>
> We have around 100 ASP.Net Pages and error comes on some
> pages and works fine with other pages While Inserting
> Data, Update Data...
>
> For updation and Insertion i have written procedures, and
> all the field Type is have DateTime.
>
> what could be possible cause...
>
> Thnkx in Advance...
> vrushal
>
>