Hi,
Maybe try this:
If (CStr(ViewState("CustID")).Length > 0) AND (gtCart.Count > 0) Then
WriteOrder()
You appear to be mixing integers and strings. Is the Count property of
gtCart an integer? If so, then the above will work. If it is a string
exchange this: (CStr(gtCart.Count).Length > 0) with this: (gtCart.Count >
0) . Then you should be good to go. Also, put Option Explicit On at the
top of your code file and in VS.Net it should highlight where you are making
dangerous conversions between types. Good luck! Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"Sparky Arbuckle" <> wrote in message
news: ups.com...
> What is wrong with the following syntax?
>
>
> IF ViewState("CustID") < " " AND gtCart.Count > " " THEN WriteOrder()
>
> The error I get is:
>
> Exception Details: System.FormatException: Input string was not in a
> correct format.
>