Click here to Skip to main content
15,907,676 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir,
i want to display decimal value from database to text box.
below is my code
C#
txtpercentage.Text =  dts.Rows[0]["Mark_Per"].ToString();<pre lang="c#">

here dts is the data table.
Posted
Comments
OriginalGriff 5-Dec-13 7:30am    
And?
What does it do that you didn't expect, or not do that you did?

Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
vineethnair 5-Dec-13 7:44am    
sir,
sorry..
i found the solution.
i remove the FilteredTextBoxExtender from my solution.
thnks for your reply.
ZurdoDev 5-Dec-13 7:54am    
1. Reply to the comment so that they are notified.
2. Please post as solution so this no longer shows as Unanswered.
3. Good to see you got it working.

1 solution

txtpercentage.Text =  dts.Rows[0]["Mark_Per"].ToString();<pre lang="c#">

error reason is i used a number fllter in my text box,value from my data base is decimel.
when i try to display decimal value from data base to textbox '.' charcter is not allowed because the filter i used as number filter.i solved the error by removing number filter by float filter.
 
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