Server Error in '/' Application.

The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive.

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.ArgumentException: The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive.

Source Error:


Line 102:                Dim fluid() As String = {"Water", "Saturated Steam", "Superheated Steam", "Liquid Other Than Water", "Gas Other Than Steam"}
Line 103:                DropDownFluid.DataSource = fluid
Line 104:                DropDownFluid.DataBind()
Line 105:                Dim lengths() As String = {"in", "mm"}
Line 106:                DropDownCustom.DataSource = lengths

Source File: C:\inetpub\wwwroot\EvalSz\ValveFlowOptions.aspx.vb    Line: 104

Stack Trace:


[ArgumentException: The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive.]
   System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) +1509
   System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +408
   System.Web.UI.WebControls.ListControl.PerformSelect() +44
   EValSz.ValveFlowOptions.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\EvalSz\ValveFlowOptions.aspx.vb:104
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0