Click here to Skip to main content
15,889,368 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to solve this problem Pin
Abhijit Jana23-Jun-09 21:19
professionalAbhijit Jana23-Jun-09 21:19 
QuestionWeb.sitemap could not be loaded Pin
nitin_ion23-Jun-09 17:07
nitin_ion23-Jun-09 17:07 
AnswerRe: Web.sitemap could not be loaded Pin
Abhijit Jana23-Jun-09 18:17
professionalAbhijit Jana23-Jun-09 18:17 
QuestionHow to make a asp:textbox to be able to put images, bulletpoints, like blogger's on Pin
freeman198923-Jun-09 14:10
freeman198923-Jun-09 14:10 
AnswerRe: How to make a asp:textbox to be able to put images, bulletpoints, like blogger's on Pin
Not Active23-Jun-09 15:24
mentorNot Active23-Jun-09 15:24 
AnswerRe: How to make a asp:textbox to be able to put images, bulletpoints, like blogger's on Pin
kstls29-Jun-09 1:41
kstls29-Jun-09 1:41 
QuestionHow to display formatted numbers in textBox ? Pin
hdv21223-Jun-09 12:41
hdv21223-Jun-09 12:41 
AnswerRe: How to display formatted numbers in textBox ? Pin
freeman198923-Jun-09 14:40
freeman198923-Jun-09 14:40 
Hi, hdv212, there are 2 ways of doing this

One way is done at the database side. Use the convert function to convert your values to 2 decimal places before it is being passed to your asp.net webpage

For example:

use Test2
select Convert(decimal(7,2),moneyPrice) from test1 where id=1


Another way is to use casting in asp.net :

assuming variable x is your 61.00000
double y = (int)x - x
//y would now be the decimal values, since (int)x will only give the whole number
if (y !=0) 
{
int decValue = (int)y*10 ; //this is done so that only the first 2 decimal values is 
                           //captured into the decValue variables
double backToDecimalPlaces = (double)decValue/10;

x +=backToDecimalPaces;    //now x will contain 61 or 61.xx where xx is the decimal values
}

AnswerRe: How to display formatted numbers in textBox ? Pin
Not Active23-Jun-09 15:26
mentorNot Active23-Jun-09 15:26 
QuestionGridView Checkbox Pin
mark_me23-Jun-09 6:56
mark_me23-Jun-09 6:56 
AnswerRe: GridView Checkbox Pin
Abhijit Jana23-Jun-09 7:36
professionalAbhijit Jana23-Jun-09 7:36 
GeneralRe: GridView Checkbox Pin
mark_me23-Jun-09 8:46
mark_me23-Jun-09 8:46 
GeneralRe: GridView Checkbox Pin
Abhijit Jana23-Jun-09 9:30
professionalAbhijit Jana23-Jun-09 9:30 
QuestionRe: GridView Checkbox Pin
mark_me23-Jun-09 9:35
mark_me23-Jun-09 9:35 
AnswerRe: GridView Checkbox Pin
Abhijit Jana23-Jun-09 9:54
professionalAbhijit Jana23-Jun-09 9:54 
GeneralRe: GridView Checkbox Pin
mark_me23-Jun-09 11:06
mark_me23-Jun-09 11:06 
AnswerRe: GridView Checkbox Pin
Not Active23-Jun-09 10:42
mentorNot Active23-Jun-09 10:42 
GeneralRe: GridView Checkbox Pin
mark_me23-Jun-09 11:10
mark_me23-Jun-09 11:10 
QuestionGrid View Pin
demouser74323-Jun-09 3:38
demouser74323-Jun-09 3:38 
AnswerRe: Grid View Pin
DoctorMick23-Jun-09 4:43
DoctorMick23-Jun-09 4:43 
GeneralRe: Grid View Pin
Robert_Pan24-Jun-09 0:29
Robert_Pan24-Jun-09 0:29 
GeneralRe: Grid View Pin
demouser74324-Jun-09 3:31
demouser74324-Jun-09 3:31 
QuestionSaving a variable help! Pin
cdietschrun23-Jun-09 3:34
cdietschrun23-Jun-09 3:34 
AnswerRe: Saving a variable help! Pin
DoctorMick23-Jun-09 4:41
DoctorMick23-Jun-09 4:41 
GeneralDate Time Conversion Pin
papy-boom23-Jun-09 2:42
papy-boom23-Jun-09 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.