Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unterm String error 1

Status
Not open for further replies.

travisbrown

Technical User
Joined
Dec 31, 2001
Messages
1,016
Can someone tell me why this would return an unterminated string error? The question mark shouldn't be a problem, should it?

<a href="DistrictManage.asp?mode=delete&amp;ID=216" onclick="return confirm('Are you sure you want to delete NIC - GLN EL
?')" class="buttons" id="remove" title="Remove NIC - GLN EL
"><span>Delete</span></a>
 
Ah, thanks. Bad data. It's being called from a dataset. Don't know how those characters got in there. URL Encoding showed a %0A and %0D

Okay, odd. I can't seem to strip it out. Using vbs I've replaced Chr(10),Chr(12), and Chr(13) to no avail. How would one capture these characters?

<a href="DistrictManage.asp?mode=delete&amp;ID=216" onclick="return confirm('Are you sure you want to delete NIC+%2D+GLN+EL%0D%0A?')" class="buttons" id="remove" title="Remove NIC - GLN EL
"><span>Delete</span></a>

 
Yeah, I don't know what it is. I stripped out every possible non-space/non-alphabet/non-punctuation character and still got it. Actually went into the data and removed the line break. TRIM should have taken care of it, but no. Was only on two records out of 4000. Odd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top