2017-01-26 3 views
0

Я получаю следующее сообщение об ошибке:об ошибке синтаксического анализатора для RadioButtonList

enter image description here

и это код страницы:

<form id="form1" runat="server"> 
<div> 
    <asp:MultiView ID="MultiView1" runat="server"> 
     <asp:View ID="View1" runat="server"> 
      Choose a Foreground (Text) Color:<br/> 
      <asp:DropDownList ID="lstForeColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstForeColor_OnSelectedIndexChanged"></asp:DropDownList> 
      <br/><br/> 
      Choose a Background Color:<br/> 
      <asp:DropDownList ID="lstBackColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstBackColor_OnSelectedIndexChanged"></asp:DropDownList> 
     </asp:View> 
     <asp:View ID="View2" runat="server"> 
      Choose a Border Style:<br/> 
      <asp:RadioButtonList ID="lstBorder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstBorder_OnSelectedIndexChanged" RepeatColumns="2"/> 
      <br/> 
      <asp:CheckBox ID="chkPictre" runat="server" AutoPostBack="True" OnCheckedChanged="chkPictre_OnCheckedChanged" Text="Add Deafult Picture"/> 
     </asp:View> 
     <asp:View ID="View3" runat="server"> 
      Choose a fint name:<br/> 
      <asp:DropDownList ID="lstFontName" runat="server"AutoPostBack="True" OnTextChanged="lstFontName_OnTextChanged"/> 
      <br/><br/> 
      Enter the greeting text Below:<br/> 
      <asp:TextBox ID="txtGreeting" runat="server" AutoPostBack="True" OnTextChanged="txtGreeting_OnTextChanged" TextMode="MultiLine"></asp:TextBox> 
     </asp:View> 
    </asp:MultiView> 
</div> 
</form> 

Я попытался изменить идентификатор, удаляет некоторые свойства, добавить закрытие теги, но никто из них не работал, мне интересно, почему я получаю эту ошибку

ответ

0

Вам не хватает пробела между свойствами в lstFontName. Изменение

<asp:DropDownList ID="lstFontName" runat="server"AutoPostBack="True" OnTextChanged="lstFontName_OnTextChanged"/> 

в

<asp:DropDownList ID="lstFontName" runat="server" AutoPostBack="True" OnTextChanged="lstFontName_OnTextChanged"/> 

Там должно быть пространство между runat="server" и AutoPostBack="True"

+0

Thanks.that работал, сообщение об ошибке имел в виду неправильно line.still некоторые люди говорят, компилятор никогда не делают ошибки. – Mohsen

Смежные вопросы