Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 ASP Articles

When adding database derived information to a querystring, there is always the possibility of badly derived data.  One of the common problems is the inclusion of the single apostrophy in the data.  To prevent this causing a javascript error on the page, the data needs to be encoded with the server.urlencode(  ) command.

For example:

onClick="window.open('/model.asp?model=<%= Server.URLEncode(objRS("product_model"))','model','width=480,height=420,resizable=yes,scrollbars=1');return false;"

This article viewed: 1211 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Tuesday, May 13, 2008