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 ForumsSurveySurveyDNN 4.5DNN 4.5
Previous
 
Next
New Post
4/13/2007 4:20 AM
 
DNN 4.5  Modified By M Bouwman  on 4/13/2007 4:32:31 AM

If you're going to release a new version for 4.5.0 anyway, you might want to add some cssclass="normal" tags in just about every place cause all questions, thank you for participating message, etc show up in Times New Roman.

I think you might want this:

<%@ Control Language="vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.Survey.Survey" CodeFile="Survey.ascx.vb" %>
<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" CssClass="NormalBold" runat="server" Text='<%# Eval("Question") %>' Font-Bold="False"></asp:Label><br />
            <asp:RadioButtonList ID="optOptions" runat="server" cssclass="normal">
            </asp:RadioButtonList>
            <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>

 

 

 
New Post
4/13/2007 4:34 AM
 

O yeah, 1 more remark.

When I submitted, I got to the results page. But when you refresh when you're on the results page, another survey get's submitted.
I think that shouldn't happen....

 
New Post
4/13/2007 8:21 AM
 

trouble2 wrote

If you're going to release a new version for 4.5.0 anyway, you might want to add some cssclass="normal" tags in just about every place cause all questions, thank you for participating message, etc show up in Times New Roman.

I think you might want this:

Now you see  thats what I call helping out the project! Thank you for that. I will use it



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/13/2007 8:22 AM
 

trouble2 wrote

O yeah, 1 more remark.

When I submitted, I got to the results page. But when you refresh when you're on the results page, another survey get's submitted.
I think that shouldn't happen....

when 04.00.70 gets released it will fix that. For now you can run this script:

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}AddSurveyResult]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure {databaseOwner}{objectQualifier}AddSurveyResult
GO

/** Create Stored Procedure **/
create procedure {databaseOwner}{objectQualifier}AddSurveyResult @SurveyOptionID int, @UserID int as
DECLARE @i int
Set @i = (SELECT COUNT(*) AS records
FROM {objectQualifier}SurveyResults
 WHERE (UserID = @UserID) AND (SurveyOptionID = @SurveyOptionID))

 if (@i = 0)
begin
update {objectQualifier}SurveyOptions set Votes = Votes + 1
 where SurveyOptionID = @SurveyOptionID
 insert into {objectQualifier}SurveyResults (SurveyOptionID, UserID)
 values (@SurveyOptionID, @UserID)
 end



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/13/2007 9:08 AM
 

AdefWebserver wrote

 trouble2 wrote

 

If you're going to release a new version for 4.5.0 anyway, you might want to add some cssclass="normal" tags in just about every place cause all questions, thank you for participating message, etc show up in Times New Roman.

I think you might want this:

Now you see  thats what I call helping out the project! Thank you for that. I will use it

I tried the change an it actually made the fonts not match up.. Also the Thank You for Participating is not in Times New Roman on my system. It uses class="NormalBold" and does not show up as Times New roman when installed on a fresh DotNetNuke install.

The problem is if I make a change now people will be up in arms about the change. It happend last time I did that :(



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyDNN 4.5DNN 4.5


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