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 ForumsSurveySurveyAnswers in a DropDownListAnswers in a DropDownList
Previous
 
Next
New Post
11/26/2007 7:16 AM
 

I have need to display questions's answers in a dropdownlist, How can i do this?

Thanks.

 
New Post
11/26/2007 3:22 PM
 

The current module does not do this.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
11/27/2007 5:12 AM
 

 

(my english isn`t good, sorry)

One way that I've found:

Changing in Survey.ascx and in the Survey.ascx.vb the control "RadioButtonList" by "DropDownList", can do it.

Example in the Survey.ascx:

<%@ Control Language="vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.Survey.Survey"
    CodeFile="Survey.ascx.vb" %>
<table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
    <tr>
        <td align="right">
            </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" EnableViewState="False" CssClass="NormalBold"></asp:Label>
            <asp:Panel ID="pnlSurvey" runat="server" Visible="False">
                <asp:DataList ID="lstSurvey" runat="server" CellPadding="4" DataKeyField="SurveyId">
                    <ItemTemplate>
                        <asp:HyperLink ID="cmdEdit2" ImageUrl="~/images/edit.gif" NavigateUrl='<%# EditURL("SurveyId",DataBinder.Eval(Container.DataItem,"SurveyId")) %>'
                            Visible="<%# IsEditable %>" runat="server" />
                        <asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' CssClass="NormalBold"></asp:Label><br />
                        <asp:DropDownList ID="optOptions" runat="server" CssClass="Normal">
                        </asp:DropDownList> 
IN
                        <asp:RadioButtonList ID="optOptions" runat="server" CssClass="Normal">
                        </asp:RadioButtonList>
OUT
                        <asp:CheckBoxList ID="chkOptions" runat="server" CssClass="Normal">
                        </asp:CheckBoxList><br />
                    </ItemTemplate>
                </asp:DataList>
                <asp:LinkButton ID="cmdSubmit" runat="server" resourcekey="cmdSubmit" CssClass="CommandButton">Submit Survey</asp:LinkButton>&nbsp;
                <asp:LinkButton ID="cmdResults" runat="server" resourcekey="cmdResults" CssClass="CommandButton">View Results</asp:LinkButton></asp:Panel>
            <asp:Label ID="Message_Label" runat="server" EnableViewState="False" CssClass="NormalBold"></asp:Label>
            <asp:Panel ID="pnlResults" runat="server" Visible="False">
                <asp:DataList ID="lstResults" runat="server" CellPadding="4" DataKeyField="SurveyId">
                    <ItemTemplate>
                        <asp:HyperLink ID="cmdEdit2" ImageUrl="~/images/edit.gif" NavigateUrl='<%# EditURL("SurveyId",DataBinder.Eval(Container.DataItem,"SurveyId")) %>'
                            Visible="<%# IsEditable %>" runat="server" />
                        <asp:Label ID="lblQuestion2" runat="server" CssClass="NormalBold" Text='<%# FormatQuestion(DataBinder.Eval(Container.DataItem,"Question"),lstResults.Items.Count + 1) %>'>
                        </asp:Label><br>
                        <asp:Label ID="lblResults" runat="server" CssClass="Normal"></asp:Label>
                        <br>
                    </ItemTemplate>
                </asp:DataList>
                <asp:LinkButton ID="cmdSurvey" runat="server" resourcekey="cmdSurvey" CssClass="CommandButton">View Survey</asp:LinkButton>
            </asp:Panel>
        </td>
    </tr>
</table>

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyAnswers in a DropDownListAnswers in a DropDownList


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