+1-888-365-2779
Try Now
More in this section

Polls error

5 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    I've created a poll with 3 questions and select it on a page. I publish the page and on live site I tried to vote. On submit I got the following errors.

    Multiple controls with the same ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Multiple controls with the same ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): Multiple controls with the same ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.]
    System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +220
    System.Web.UI.Control.EnsureNamedControlsTable() +57
    System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +106
    System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
    System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
    System.Web.UI.Page.FindControl(String id) +40
    System.Web.UI.Page.RegisterRequiresClearChildControlState(Control control) +345
    System.Web.UI.Control.ClearChildControlState() +50
    System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +36
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +41
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210



  2. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    I reset votes and released blocked IP's to try revote on live site. The Poll is displayed but again in the vote it shows same error.

    Is it possible this happen because on the 3 questions there are 3 possible answers for each one and all are radio buttons?

    Something else concerning presentation. I select background color for the poll but it seems to ignore these settings. Any suggestion?

    Best regards

    Vagelis
  3. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    Perhaps there was some error on the design of the template where I used a generic content and I had also generic content on the page. I removed all and then tried again and error disappeared.

    Still my question about Poll box colors exists how it works.

    Regards

    Vagelis
  4. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    Hello, is it possible to hide the number of each answer of the poll as also same number next to percent?
    1. Yes
    2. No
  5. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    05 Mar 2007
    Link to this post
    Hi Vagelis,

    Indeed the background property does not render the selected color. Nor do the other style properties. We will implement these properties in one of our next releases. Sorry for the inconvenience caused.

    Of course, you can style your poll without these properties. All you need to do is set CssClass for the PollBox and do the styling through CSS. Thus you can also remove the numbers from the answers. By setting 

    list-style-type: none

    for the list html element.

    Hope this will help.

    Regards,
    Vassil Daskalov
    the telerik team
Register for webinar
5 posts, 0 answered