%@ Language=VBScript%> <%Response.Buffer = True%> <% 'Local Variables to be used in the page.. Dim ComID, bInit, bExecuted, fExecuted, pExecuted 'Initialize the Page for each server request adLockOptimistic = 3 InitializePage() %> <% '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Function InitializePage() bInit = CBool(Request.Querystring ("init")) If Request.Form("selComm") = "0" AND Not bInit Then messages = "You must select a committe to view voting results." Response.Clear Response.Redirect "error.asp?mess=" + Server.URLEncode(messages) Response.End End If If bInit <> Cint(False) then ComId = Cint(0) else ComID = Cint(Request.Form("selComm")) End IF End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %> <% Set rsComm = Server.CreateObject("ADODB.Recordset") GetCommsApprove rsCOMM %> <% '************************ '* HTML Section '************************ %>
| Name | Division | Votes | Percent |
| <%=objVote.fields("F_NAME").value + " " + objVote.fields("L_NAME").value%> | <%=objVote.fields("DIVISION").value%> | <%=objVote.fields("VOTES").value %> | <%=Cint(Percent)%>% |