Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2004, 06:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hey Leon,
Then you should be looking for Server.HTMLEncode() that converts are HTML tags within the resume as shown below. The following conversion will take place before adding the resume in the DB
< - &lt;
> - &gt;
& - &amp;
' - &apos;
" - &quote;

Otherwise alteast you have to replace the single quotes if any within the resume with two Single quotes. As single quotes have special meaning in sql, just to negate that this has to be done.
Code:
Dim strResume
strResume = Replace(Request.Form("sResume"),"'","''")
OR

Try this...
Code:
Dim strResume
strResume = Server.HTMLEncode(Request.Form("sResume"))
Use this strResume variable in your SQL statement for storing the resume in your database. That should work.

Also take a look at this link - QueryString Has a Maximum Length. Though not certain about the fixed length, there is a limit(just above 2 kb including the URL), and it is not endless at all.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 2nd, 2004, 05:19 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Vijay,

This definitely helps! Thank you VERY much!!!

Leon






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in inserting data in gridview deb_kareng ASP.NET 2.0 Professional 0 August 22nd, 2007 02:07 AM
problem in inserting data monikanit ASP.NET 1.x and 2.0 Application Design 1 July 30th, 2007 02:48 AM
mysterious problem (data no inserting ) gratisaccount VB.NET 2002/2003 Basics 1 June 29th, 2006 08:48 AM
PROBLEM Inserting data into 2 tbls that r JOINED shyster1977 Classic ASP Databases 2 March 10th, 2005 10:40 AM
Problem inserting with data adapter cridley ADO.NET 1 February 22nd, 2005 05:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.