Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

GridView special character problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GaryDean - 30 Aug 2007 01:31 GMT
I have a 1.1 utility program that prints any DataGrid in a Crystal Report
and it works just fine.  I'm in the process of final testing of a new 2.0
version that does the same for GridViews.  When testing my new version I
notice that my reports don't print some types of punctuation correctly.
Upon examining the actual data in the DataGrid and then the GridView I find
that the data has been corrupted in the GridView but not the DataGrid.

Below is a snippet taken from  both the GridView and the DataGrid. As you
can see this punctuation is represented correctly in the datagrid but in the
gridview it is represented by &#nnn; which I assume is some code
representing the specific character that the datagrid has no trouble with.
(sorry it's different data).

Why is it being represented this way in the GridView?  What can I do about
it?
Thanks,
Gary

This is from a DataGrid:

<td>Col Zero</td><td>Col One</td><td>BERGS</td><td align="Right">Berglunds
snabbköp</td><td>Christina Berglund</td><td>Order
Administrator</td><td>Luleå</td><td>&nbsp;</td><td>0921-12 34
65</td><td>Sweden</td>

This is from a GridView:

</td><td>ANTON</td><td>Antonio Moreno Taquer&#237;a</td><td>Antonio
Moreno</td><td>Owner</td><td>Mataderos  2312</td><td>M&#233;xico
D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
555-3932</td><td>&nbsp;</td>
Steven Cheng[MSFT] - 30 Aug 2007 12:11 GMT
Hi Gary,

From your description, you're concerning at some text output of the ASP.NET
GridView control(compare to the DataGrid) as it doesn't output the expected
text format, correct?

Regarding on the two html fragment you posted, I saw that the GridView
rendered one contains some escaped entities such as "&#237;", are these
ones what you do not want? Also, would you post the aspx template of the
GridView and show us how to do the databinding and what's the original text
in datasource so that we can have a clearer view on this?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "GaryDean" <GaryDean@newsgroups.nospam>
>Subject: GridView special character problem

>I have a 1.1 utility program that prints any DataGrid in a Crystal Report
>and it works just fine.  I'm in the process of final testing of a new 2.0
[quoted text clipped - 27 lines]
>D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
>555-3932</td><td>&nbsp;</td>
GaryDean - 31 Aug 2007 02:06 GMT
ok, I need to work up a better comparison using similar binding.  I'll just
repost next time I get a chance to get back to this issue.
Thanks
G

> Hi Gary,
>
[quoted text clipped - 57 lines]
>>D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
>>555-3932</td><td>&nbsp;</td>
Steven Cheng[MSFT] - 31 Aug 2007 05:35 GMT
Thanks for your reply Gary,

No problem. Please feel free to post here at your convenience to continue
on this issue.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "GaryDean" <GaryDean@newsgroups.nospam>
>References: <u#Lth0p6HHA.2476@TK2MSFTNGP05.phx.gbl>
<3EZcGav6HHA.4100@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: GridView special character problem
>Date: Thu, 30 Aug 2007 18:06:56 -0700
[quoted text clipped - 77 lines]
>>>D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
>>>555-3932</td><td>&nbsp;</td>
GaryDean - 02 Sep 2007 23:11 GMT
Steven,
I posted a new thread on this "GridView DataGrid Difference".
Gary

Signature

Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com

> Thanks for your reply Gary,
>
[quoted text clipped - 103 lines]
>>>>D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
>>>>555-3932</td><td>&nbsp;</td>
Steven Cheng[MSFT] - 03 Sep 2007 03:07 GMT
Thanks Gary,

I've seen your new thread and will continue to followup you there.

Have  a good day!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
   

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "GaryDean" <GaryDean@newsgroups.nospam>
>References: <u#Lth0p6HHA.2476@TK2MSFTNGP05.phx.gbl>
<3EZcGav6HHA.4100@TK2MSFTNGHUB02.phx.gbl>
<OXtL5s26HHA.1148@TK2MSFTNGP05.phx.gbl>
<4vGXph46HHA.5204@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: GridView special character problem
>Date: Sun, 2 Sep 2007 15:11:58 -0700
[quoted text clipped - 122 lines]
>>>>>D.F.</td><td>&nbsp;</td><td>05023</td><td>Mexico</td><td>(5)
>>>>>555-3932</td><td>&nbsp;</td>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.