Click here to Skip to main content
15,887,420 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to run event of asp contol by javascript code? Pin
Anurag Gandhi22-May-14 4:19
professionalAnurag Gandhi22-May-14 4:19 
QuestionHow to convert speech to text? Pin
Member 1066162816-May-14 23:32
Member 1066162816-May-14 23:32 
AnswerRe: How to convert speech to text? Pin
Kornfeld Eliyahu Peter17-May-14 8:22
professionalKornfeld Eliyahu Peter17-May-14 8:22 
AnswerRe: How to convert speech to text? Pin
Richard MacCutchan17-May-14 21:11
mveRichard MacCutchan17-May-14 21:11 
QuestionFailed to map Path in Report Viewer Pin
Ravindra Bisen16-May-14 21:23
Ravindra Bisen16-May-14 21:23 
AnswerRe: Failed to map Path in Report Viewer Pin
ZurdoDev2-Jun-14 9:49
professionalZurdoDev2-Jun-14 9:49 
QuestionCode is not calculating percentages correctly. Pin
samflex16-May-14 7:57
samflex16-May-14 7:57 
AnswerRe: Code is not calculating percentages correctly. Pin
jkirkerx16-May-14 11:49
professionaljkirkerx16-May-14 11:49 
That's because your not calculating anything or the percentage is wrong in the database. I don't see how you can store the percentage in the database because it's always changing.

You need to get the total count of all votes and divide each candidates total votes by it

http://www.basic-mathematics.com/formula-for-percentage.html[^]
While dr.Read
   Dim count As Integer = dr(0)
   Dim pct As String = dr(1)
   // calculate percentage here (count / totalCount * 100) so 500/1000*100 = 50%
   row("CandidateName") = row("CandidateName") & " - " & count & "(" & pct & "%)"
End While

GeneralRe: Code is not calculating percentages correctly. Pin
samflex16-May-14 13:18
samflex16-May-14 13:18 
GeneralRe: Code is not calculating percentages correctly. Pin
jkirkerx16-May-14 13:24
professionaljkirkerx16-May-14 13:24 
GeneralRe: Code is not calculating percentages correctly. Pin
samflex16-May-14 15:19
samflex16-May-14 15:19 
GeneralRe: Code is not calculating percentages correctly. Pin
jkirkerx16-May-14 16:26
professionaljkirkerx16-May-14 16:26 
QuestionPaging Dynamic Data in a Gridview Pin
Grajek15-May-14 7:47
Grajek15-May-14 7:47 
AnswerRe: Paging Dynamic Data in a Gridview Pin
Praneet Nadkar15-May-14 22:04
Praneet Nadkar15-May-14 22:04 
Questionlink button click event not firing for dynamically added link button Pin
Member 1071882015-May-14 4:59
Member 1071882015-May-14 4:59 
AnswerRe: link button click event not firing for dynamically added link button Pin
Kornfeld Eliyahu Peter15-May-14 6:51
professionalKornfeld Eliyahu Peter15-May-14 6:51 
AnswerRe: link button click event not firing for dynamically added link button Pin
ZurdoDev16-May-14 4:50
professionalZurdoDev16-May-14 4:50 
AnswerRe: link button click event not firing for dynamically added link button Pin
Gourav_Garg19-May-14 8:23
professionalGourav_Garg19-May-14 8:23 
Questionfilterexpression objectdatasource change results into empty list Pin
Nico Haegens14-May-14 8:25
professionalNico Haegens14-May-14 8:25 
QuestionHelp with regulat expression Pin
byka14-May-14 2:09
byka14-May-14 2:09 
QuestionMessage Closed Pin
14-May-14 2:24
professionalPeter Leow14-May-14 2:24 
AnswerRe: Help with regulat expression Pin
byka14-May-14 2:29
byka14-May-14 2:29 
AnswerRe: Help with regulat expression Pin
Prasad Khandekar14-May-14 2:40
professionalPrasad Khandekar14-May-14 2:40 
GeneralRe: Help with regulat expression Pin
byka14-May-14 2:50
byka14-May-14 2:50 
GeneralRe: Help with regulat expression Pin
ZurdoDev16-May-14 4:51
professionalZurdoDev16-May-14 4:51 

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.