문제

       <asp:LoginView ID="LoginView1" runat="server">
   <RoleGroups>
     <asp:RoleGroup Roles="Administrators, Moderators"> 
       <asp:Table ID="Table2" runat="server" Width="156px" BorderStyle="Dashed">
           <asp:TableRow runat="server" Height="50px" Width="50px">
               <asp:TableCell runat="server"><asp:Button ID="Button7" runat="server" Text="BAN" Width="70px" /></asp:TableCell>
               <asp:TableCell runat="server"><asp:Button ID="Button6" runat="server" Text="UNBAN" /></asp:TableCell>
           </asp:TableRow>
       </asp:Table>
   </asp:RoleGroup>

What is missing? it tells me: " System.Web.UI.WebControls.RoleGroup" doesnt have a public property called Table..

도움이 되었습니까?

해결책

add in the <ContentTemplate></ContentTemplate> in after the <asp:RoleGroup>, then have all your other controlls within this.

다른 팁

The <ContentTemplate> node is what's missing according to the documentation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top