Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanted to export data from asp.net page to excel, where i have export the data with particular format eg 00110, But when i export the specific format to excel. By default it will be converted to number eg 110, but I wanted to have the data in original format.

Any suggestions around this will really appreciated!!

Thank in advance
Posted
Comments
kishore sharma 31-Jul-13 7:56am    
00110 in int it is equal to 110
but if "00110" in string is "00110" only just check if any type is used
murugesan.velusamy 31-Jul-13 7:59am    
Have checked the type, It is char.
kishore sharma 31-Jul-13 8:02am    
change to string
murugesan.velusamy 31-Jul-13 8:05am    
I am fetching the data from database. where the type is char. i had tried with varchar as well but it is not working

use ="0100" to get the expected output
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900