Click here to Skip to main content
15,887,862 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Parser Error Message: The base class includes the field 'txt_Brn_Name', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control (System.Web.UI.WebControls.DropDownList).
ASP.NET
<asp:DropDownList ID="txt_Brn_Name" runat="server" AutoPostBack="True"
Height="16px" onselectedindexchanged="txt_Brn_Name_SelectedIndexChanged"
Width="201px">
<asp:ListItem>


There is a blue line under the statement below

ASP.NET
<asp:DropDownList ID="txt_Brn_Name" runat="server" AutoPostBack="True" 


How do I correct this error?

New Bie

Thanks

What I have tried:

I searched for the parse on the net and i cant make any meaning out of what I found
Posted
Updated 2-Nov-16 21:10pm
v3

You changed it in the HTML, but not in your Page class C# code: Use VS to "Find All References" and you should see the CS definition.
 
Share this answer
 
HI,

Try a test case :
1. Add an original control of dropdown.
2. Compare both controls.

Try to identify the error and remove that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900