problem with dropdown listbox exception

Discussion in 'ASP .Net' started by Vaidas Gudas, Jan 23, 2006.

  1. Vaidas Gudas

    Vaidas Gudas Guest

    I am getting this error:
    [ArgumentOutOfRangeException: 'lstAtliko' has a SelectedValue which is
    invalid because it does not exist in the list of items.
    Parameter name: value]
    System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable
    dataSource) +970
    System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +80
    System.Web.UI.WebControls.ListControl.PerformSelect() +32
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +99
    System.Web.UI.Control.DataBindChildren() +236
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
    System.Web.UI.Control.DataBind() +31
    System.Web.UI.Control.DataBindChildren() +236
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
    System.Web.UI.Control.DataBind() +31
    System.Web.UI.Control.DataBindChildren() +236
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
    System.Web.UI.Control.DataBind() +31
    System.Web.UI.Control.DataBindChildren() +236
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
    System.Web.UI.WebControls.FormView.CreateChildControls(IEnumerable
    dataSource, Boolean dataBinding) +3051
    System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable
    data) +89
    System.Web.UI.WebControls.FormView.PerformDataBinding(IEnumerable data)
    +30
    System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable
    data) +126
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments,
    DataSourceViewSelectCallback callback) +98
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +154
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +99
    System.Web.UI.WebControls.FormView.DataBind() +23
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +92
    System.Web.UI.WebControls.FormView.EnsureDataBound() +176
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
    +100
    System.Web.UI.Control.EnsureChildControls() +134
    System.Web.UI.Control.PreRenderRecursiveInternal() +109
    System.Web.UI.Control.PreRenderRecursiveInternal() +233
    System.Web.UI.Control.PreRenderRecursiveInternal() +233
    System.Web.UI.Control.PreRenderRecursiveInternal() +233
    System.Web.UI.Control.PreRenderRecursiveInternal() +233
    System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4437

    I know that this value does not exist, but how to catch this error and add
    this value to the list by manual
     
    Vaidas Gudas, Jan 23, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blenderdude
    Replies:
    0
    Views:
    1,052
    blenderdude
    Aug 3, 2003
  2. DC Gringo
    Replies:
    0
    Views:
    408
    DC Gringo
    Apr 6, 2004
  3. kent
    Replies:
    1
    Views:
    883
    Andrew de la Harpe
    May 3, 2004
  4. Simon Prince
    Replies:
    2
    Views:
    3,336
    =?Utf-8?B?TWljaGFlbCBUYXlsb3I=?=
    Oct 19, 2004
  5. Chris Kettenbach

    Listbox selection to populate another listbox?

    Chris Kettenbach, Jun 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,654
    Chris Kettenbach
    Jun 16, 2005
Loading...

Share This Page