Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Dropdown list cannot have multiple items selected! (http://www.velocityreviews.com/forums/t70009-dropdown-list-cannot-have-multiple-items-selected.html)

Jeff Tolman 01-07-2004 12:16 AM

Dropdown list cannot have multiple items selected!
 
I'm getting a Server Error page with a "Dropdown list cannot have multiple
items selected" error. First off, my page doesn't even HAVE a dropdownlist
on it. Secondly, there is no Source file listed on the error page, so I'm
not even sure where to look for the problem. The code appears to run just
fine without exceptions all the way through the PreRender Event routine, but
somehow this error appears. Any suggestions?

Here is the text from the error page:

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: A DropDownList cannot have
multiple items selected.

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): A DropDownList cannot have multiple items
selected.]
System.Web.UI.WebControls.DropDownList.RenderConte nts(HtmlTextWriter
writer)
System.Web.UI.WebControls.WebControl.Render(HtmlTe xtWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()



All answers are welcome!

Thanks!

Jeff Tolman
E&M Electric
jeff.tolman@enm.com



Jim Cheshire [MSFT] 01-07-2004 03:36 PM

RE: Dropdown list cannot have multiple items selected!
 
Jeff,

What that error is usually really telling us is that you cannot have one
ListItem object existing in multiple lists. It is, however, perplexing
that you say you have no dropdowns on any pages.

When do you see this error? Can you attach your .aspx and code-behind?

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
jamesche@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Jeff Tolman" <jeff.tolman@serra.com>
>Subject: Dropdown list cannot have multiple items selected!
>Date: Tue, 6 Jan 2004 16:16:31 -0800
>Lines: 55
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <uBDZBOL1DHA.1752@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 204-145-245-182.enm.com 204.145.245.182
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!tk2msftngp13.phx.gbl
>Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:200184
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>I'm getting a Server Error page with a "Dropdown list cannot have multiple
>items selected" error. First off, my page doesn't even HAVE a dropdownlist
>on it. Secondly, there is no Source file listed on the error page, so I'm
>not even sure where to look for the problem. The code appears to run just
>fine without exceptions all the way through the PreRender Event routine,

but
>somehow this error appears. Any suggestions?
>
>Here is the text from the error page:
>
>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: A DropDownList cannot have
>multiple items selected.
>
>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): A DropDownList cannot have multiple items
>selected.]
> System.Web.UI.WebControls.DropDownList.RenderConte nts(HtmlTextWriter
>writer)
> System.Web.UI.WebControls.WebControl.Render(HtmlTe xtWriter writer)
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
> System.Web.UI.Control.Render(HtmlTextWriter writer)
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
> System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter

writer)
> System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter
>writer)
> System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
> System.Web.UI.Control.Render(HtmlTextWriter writer)
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> System.Web.UI.Page.ProcessRequestMain()
>
>
>
>All answers are welcome!
>
>Thanks!
>
>Jeff Tolman
>E&M Electric
>jeff.tolman@enm.com
>
>
>




All times are GMT. The time now is 10:35 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57