I have a loop in which I am using Server.URLEncode to data from a recordset. There are 3 fields in which I use this. When I encode the last 2, the page works. When I encode the first record, it does not. I tested it by using the record w/w/o encoding. The page works with the data when the first is not encoded. Does anyone know why this might be happening? (The unitid code works w/o encoding)
<td><A HREF ="/oilgas/unitind.asp?unitd=<%=Server.URLEncode(rscon("unitid"
)%>"><%=rscon("unitid"
%></A>
<td><A HREF ="/oilgas/leaseind.asp?ln=<%=rscon("leasenumber"
%>"><%=rscon("leasenumber"
%></A>
<td><%=rscon("leasename"
%>
<td><A HREF ="/oilgas/opind.asp?OpId=<%=Server.urlencode(rscon("opid"
)%>"><%=rscon("opid"
%></A>
<td><A HREF ="/oilgas/unitind.asp?unitd=<%=Server.URLEncode(rscon("unitid"
<td><A HREF ="/oilgas/leaseind.asp?ln=<%=rscon("leasenumber"
<td><%=rscon("leasename"
<td><A HREF ="/oilgas/opind.asp?OpId=<%=Server.urlencode(rscon("opid"