Click here to Skip to main content
15,908,931 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCalling exe file from ASP.Net in the same server? Pin
hifiger200427-Oct-07 5:53
hifiger200427-Oct-07 5:53 
AnswerRe: Calling exe file from ASP.Net in the same server? Pin
soni uma28-Oct-07 19:17
soni uma28-Oct-07 19:17 
AnswerRe: Calling exe file from ASP.Net in the same server? Pin
hifiger200431-Oct-07 1:21
hifiger200431-Oct-07 1:21 
QuestionHelp please: Master page of web application in _layout folder in MOSS Pin
bin_bin126-Oct-07 14:15
bin_bin126-Oct-07 14:15 
Questionmy flashfxp could not upload Pin
youbo26-Oct-07 2:55
youbo26-Oct-07 2:55 
AnswerRe: my flashfxp could not upload Pin
Vasudevan Deepak Kumar26-Oct-07 3:10
Vasudevan Deepak Kumar26-Oct-07 3:10 
GeneralRe: my flashfxp could not upload Pin
youbo26-Oct-07 4:11
youbo26-Oct-07 4:11 
QuestionASP loops Pin
Dreamzor25-Oct-07 23:00
Dreamzor25-Oct-07 23:00 
Hello!

I got a page where a user can view meeting attendance / per year
The user can select to view multiple years at the time, etc 2006,2007

The problem is that the calculation for total attendance % is wrong if any of the meetings has 0 attendance on the meeting.

heres the code that displays the information.

dim lastmonth, currentmonth, samemonth, ackumulated_sum_dict, att_percent, tempPercent, ackumulated_mem_dict, tempMems
currentmonth = ""
lastmonth = "test"
samemonth = false
for each mon in monthArray
currentmonth = mon
if(currentmonth = lastmonth) then
samemonth = true
else
samemonth = false
end if
%>

<%=meetingsArray.Item(mon)%> <%
dim meetArray, meet_date, meet_id

for each yearItem in yearArray
meetArray = getMeetRS(samemonth, yearItem, mon, instID)

if not ubound(meetArray) < 1 then
meet_date = meetArray(0,0)
meet_id = meetArray(1,0)
%>
<%=meet_date%>   <%
attendees = getAttendeesAtMeeting( meet_id , instId)
tempMems = ackumulated_mem_dict.Item(yearItem)
ackumulated_mem_dict.Item(yearItem) = tempMems + attendees
Response.Write attendees
%>
<%
memInInst = getNumOfMembers(instId,meet_date)
Response.Write memInInst
%>
<%
att_percent = (attendees / memInInst) * 100
tempPercent = ackumulated_sum_dict(yearItem)
tempPercent = tempPercent + att_percent
ackumulated_sum_dict.Item(yearItem)=tempPercent

%>
<%= round(att_percent,2)%> <%
else
%>
        <%
end if
next
%>

<%
lastmonth = currentmonth
next
%>
Totalt <%
for each yearItem in yearArray
%>
  <%=ackumulated_mem_dict(yearItem)%>   <%=round(ackumulated_sum_dict(yearItem)/ (ubound(monthArray)+1),2) %>
<%

next
%>
<%


anyone got any ideas how to fix the calculations on this ?
thx!
AnswerRe: ASP loops Pin
Guffa25-Oct-07 23:16
Guffa25-Oct-07 23:16 
GeneralRe: ASP loops Pin
Dreamzor25-Oct-07 23:28
Dreamzor25-Oct-07 23:28 
Questionhow i can to have the all id for HTML controls in the Webpage Pin
Thaer Hamael25-Oct-07 12:04
Thaer Hamael25-Oct-07 12:04 
AnswerRe: how i can to have the all id for HTML controls in the Webpage Pin
Shog925-Oct-07 18:00
sitebuilderShog925-Oct-07 18:00 
GeneralRe: how i can to have the all id for HTML controls in the Webpage Pin
Thaer Hamael27-Oct-07 3:00
Thaer Hamael27-Oct-07 3:00 
GeneralRe: how i can to have the all id for HTML controls in the Webpage Pin
Shog927-Oct-07 5:52
sitebuilderShog927-Oct-07 5:52 
GeneralRe: how i can to have the all id for HTML controls in the Webpage Pin
Thaer Hamael27-Oct-07 23:03
Thaer Hamael27-Oct-07 23:03 
GeneralRe: how i can to have the all id for HTML controls in the Webpage Pin
Shog928-Oct-07 8:18
sitebuilderShog928-Oct-07 8:18 
QuestionAJAX textchange event then click event Pin
CandyMe25-Oct-07 3:43
CandyMe25-Oct-07 3:43 
AnswerRe: AJAX textchange event then click event Pin
Shog925-Oct-07 9:23
sitebuilderShog925-Oct-07 9:23 
GeneralRe: AJAX textchange event then click event Pin
CandyMe25-Oct-07 18:03
CandyMe25-Oct-07 18:03 
QuestionDisable CompareValidator [modified] Pin
CandyMe24-Oct-07 19:46
CandyMe24-Oct-07 19:46 
AnswerRe: Disable CompareValidator Pin
pmarfleet25-Oct-07 8:13
pmarfleet25-Oct-07 8:13 
GeneralRe: Disable CompareValidator Pin
CandyMe25-Oct-07 18:01
CandyMe25-Oct-07 18:01 
Questionbyte[] memory consumption excedded Pin
Navneet Hegde24-Oct-07 4:14
Navneet Hegde24-Oct-07 4:14 
AnswerRe: byte[] memory consumption excedded Pin
Guffa24-Oct-07 9:22
Guffa24-Oct-07 9:22 
GeneralRe: byte[] memory consumption excedded Pin
Navneet Hegde24-Oct-07 20:01
Navneet Hegde24-Oct-07 20:01 

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.