Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1729: 'ListItem' does not contain a constructor that takes 2 arguments

Source Error:


Line 149:            foreach (DataRow row in areas.Rows)
Line 150:            {
Line 151:                rbArea.Items.Add(new ListItem(row["type"].ToString(), row["id"].ToString()));
Line 152:            }
Line 153:            rbArea.SelectedValue = area.ToString();

Source File: c:\inetpub\cadesignmind\Templates\ContentControls\CandidateList.ascx.cs    Line: 151





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