Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

export to csv: long numbers automatically converted into scientific notation

Posted on 2011-02-24
2
Medium Priority
?
2,941 Views
Last Modified: 2012-05-11
Hi,

I am export a datatable from asp.net page to csv file. One column in datatable is long number. But in the exported csv, it is always displayed as scientific notation. How can i enforce it to be displayed as normal number?

thx
0
Comment
Question by:viola123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
quizwedge earned 2000 total points
ID: 34975664
Try looking at the second to last comment at http://www.telerik.com/community/forums/aspnet-ajax/grid/export-to-excel-prventing-long-numbers-from-scientific-notation.aspx

Alternatively, you can put an apostrophe before the numbers, which would convert it to text and prevent it from being displayed as scientific notation.
0
 
LVL 11

Expert Comment

by:Sudhakar Pulivarthi
ID: 34978220
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question