Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyCan we remove the number of user who have posted the survey from the results page?Can we remove the number of user who have posted the survey from the results page?
Previous
 
Next
New Post
3/23/2007 4:14 AM
 

Hi,

Can we remove the number of user who have posted the survey from the results page.
As when i submit my poll in the survey module then at that point in time i see the results of the survey. In that results page after each option of my answer there is written that how many users has posted the survey. for example yes(10), No (20). I dont want the user should see the number of users submitting the survey.
please let me know ASAP.

Thanks and regards,
Vikash sharma

 

 
New Post
3/23/2007 9:03 PM
 

1. Install the surevey module

2. Open up "Survey.ascx.vb" in notepad

3. Remove the code:  (" & objSurveyOption.Votes.ToString & ")

4. Save the file



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/24/2007 12:57 AM
 

Hi Thanks for the prompt reply,
I have tried with the solution you have posted. But it's not working..i dont know what to do?

Weekly mini-poll
1. Here i have added my question?
And here are the options like radio buttons.

And on the result page it looks something like this..
Yes(1)     Graph
No(20)    Graph

I am concerned about the number that is coming after yes and no....i want to remove these number.
please let me know what can i do to resolve this issue..
Thanks in advance..
Vikash sharma

 
New Post
3/24/2007 9:08 AM
 
Did you remove the correct code? It is in a method called "Private Sub lstResults_ItemDataBound"


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/26/2007 12:35 AM
 
Hi Michael,
Yes as you have suggested that code from the file. But then too the problem is not resolved. As i know this is ascx.vb file so dont u think so that after making changes in the file, there should be a new dll, or will it work without building the project.
Here is the code of the method..after i removed ur mentioned code.

 

 

 

 

Private Sub lstResults_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles lstResults.ItemDataBoundDim objSurveys As New SurveyControllerDim objSurvey As SurveyInfoDim intSurvey As Integer

 

 

 

Dim objSurveyOptions As New SurveyOptionControllerDim objSurveyOption As SurveyOptionInfoDim intSurveyOption As Integer

 

Dim strHTML As String

 

 

Dim intGraphWidth As Integer = 400If CType(Settings("surveygraphwidth"), String) <> "" Then

intGraphWidth = Int32.Parse(

 

CType(Settings("surveygraphwidth"), String))End If

strHTML += "<BR><TABLE BORDER=""0"" CELLPADDING=""2"" CELLSPACING=""0"" WIDTH=""100%"">"

objSurvey = objSurveys.GetSurvey(Int32.Parse(lstResults.DataKeys(e.Item.ItemIndex).ToString), ModuleId)

 

If Not objSurvey Is Nothing Then

 

 

objSurveyOption =

 

 

Dim arrSurveyOptions As ArrayList = objSurveyOptions.GetSurveyOptions(objSurvey.SurveyId)For intSurveyOption = 0 To arrSurveyOptions.Count - 1CType(arrSurveyOptions(intSurveyOption), SurveyOptionInfo)Dim dblPercent As Double = 0If objSurvey.Votes <> 0 Then

dblPercent = Convert.ToDouble(objSurveyOption.Votes / objSurvey.Votes)

 

End If

strHTML += "<TR>"

strHTML += "<TD VALIGN=""top"" CLASS=""YourCompanyNameSurveyResults"">" & objSurveyOption.OptionName & "</TD>"

strHTML += "<TD ALIGN=""left"" VALIGN=""top"" CLASS=""Normal"" NOWRAP><IMG SRC=""" &

strHTML += "</TR>"

 

Me.TemplateSourceDirectory & "/red.gif"" WIDTH=""" & (intGraphWidth * dblPercent) & """ BORDER=""0"" HEIGHT=""15"">&nbsp;" & CInt(dblPercent * 100).ToString & "%</TD>"Next

 

End If

strHTML += "</TABLE>"

 

lblResults.Text = strHTML

 

If this is ok then please let me know what should i do further to resolve this problem. One more thing i want to put in your notice that i have not deleted the Mini-survey and without deleting that survey i have added a new survey but then too the numbers are coming i don't know why...
please let me know if i am doing something wrong...
Thanks for the reply.
Vikash sharma.

Dim lblResults As Label = CType(e.Item.FindControl("lblResults"), Label)End Sub
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyCan we remove the number of user who have posted the survey from the results page?Can we remove the number of user who have posted the survey from the results page?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out