Conversion from string areaH20 to type Integer is not valid

Last Reply on Mar 09, 2012 06:39 AM By jj297

Posted on Mar 08, 2012 11:02 PM

I'm getting this error message:

Conversion from string "area=H20" to type 'Integer' is not valid.

on this:

How do I convert area?  It's varchar(3) in the database

       If Pending.SelectedValue = "300" Then
            Response.Redirect("pendinginAreas300.aspx?doc=" & Request.QueryString("doc") & "&"("area=" & Request.QueryString("area")))
        End If




You are viewing reply posted by: jj297 on Mar 09, 2012 06:39 AM.
Posted on Mar 09, 2012 06:39 AM

It was referring to area.  I didn't have enough & in the string. I got it to work.



 Response.Redirect("pendinginAreas.aspx?doc=" & Request.QueryString("doc") & "&" & "area=" & Request.QueryString("area"))