Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 December 3rd, 2007, 04:36 PM
Registered User
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid truncating field values with apostrophes

How do I keep a datagrid from truncating a field when it comes across an apostrophe in the returned dataset.

 
Old December 3rd, 2007, 10:11 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Sorry, never seen this problem before. Seen problems with trying to INSERT single quotes but never any return problems. Besides, we don't know what database you're using.

 
Old December 4th, 2007, 11:59 AM
Registered User
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I solved the problem by placing double quotes directly after my href= and before the > which caused the datagrid to allow the single quote in the field. By the way, this was in a stored procedure being run in SQL 2005.

 
Old December 4th, 2007, 08:24 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Glad you got it fixed.






Similar Threads
Thread Thread Starter Forum Replies Last Post
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
apostrophes or quotation marks crmpicco Javascript 6 March 21st, 2006 09:01 AM
issues with apostrophes darkhalf Classic ASP Databases 3 December 22nd, 2004 02:42 AM
truncating msrnivas .NET Web Services 2 July 7th, 2004 02:10 AM





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