You have to edit it in HTML view. I had this same
*problem* and never solved it. If you drag a new
repeater onto a webform in Design view, you will see
that it doesn't show up except for the name of the
repeater. I'm thinking this is by design since a
repeater doesn't have much to show except what it
draws at design time.


--- Jason Handby <[EMAIL PROTECTED]> wrote:
> 
> Hi all,
> 
> 
> I have an asp repeater on my page. One of the things
> in it is a radio
> button.
> 
> The HTML for my aspx page looks like this:
> 
> --------------------
> 
>       <asp:repeater id="rptMyList" runat="server">
>       <HeaderTemplate>
>               Here is a list:<br>
>               <br>
>               <table cellSpacing="0" cellPadding="0" width="240"
> border="0">
>                       <tr>
>                               <td width="10">&nbsp;</td>
>                               <td class="stext" style="FONT-WEIGHT: bold"
> width="200">Name</td>
>                               <td width="20">&nbsp;</td>
>                               <td class="stext" style="FONT-WEIGHT: bold"
> width="20">Active</td>
>                       </tr>
>       </HeaderTemplate>
>       <ItemTemplate>
>               <tr>
>                       <td width="10">&nbsp;</td>
>                       <td class="stext"><%#
> DataBinder.Eval(Container.DataItem, "Name") %></td>
>                       <td width="20">&nbsp;</td>
>                       <td class="stext">
>                               <input type="radio"
>                               name='<%#
> DataBinder.Eval(Container.DataItem, "ItemID") %>'
>                               <%# DataBinder.Eval(Container.DataItem,
> "IsActiveChecked") %> 
>                               >
>                       </td>
>               </tr>
>       </ItemTemplate>
>       <FooterTemplate>
>               </table>
>               <br>
>               <br>
>       </FooterTemplate>
>       </asp:repeater>
> 
> ---------------------
> 
> In my dataset, which I am binding this repeater to,
> I have a column called
> "IsActiveChecked", which will either contain the
> string "CHECKED" or the
> string "" depending on whether I want the radio
> button checked. The code
> I've written above works fine when you run it; the
> problem is that Visual
> Studio .NET 2003 now refuses to let me edit my page
> in Design view. It
> complains that my data bound field doesn't have
> quotes around it. The error
> message I get is
> 
>       "Could not open in Design view. Place quotes around
> a '<% %>' block
> used as an attribute value or within a <SELECT>
> element."
> 
> It seems that VS.NET 2003 can deal with you setting
> the *value* of an
> attribute using data binding (e.g. the "name"
> attribute of my radio button)
> but not actually creating the attribute itself.
> 
> Has anyone else encountered this problem? and if so,
> how did you resolve it?
> 
> 
> 
> 
> Jason
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
> 
>    
> [EMAIL PROTECTED]
> 
>  
> 
> 
> 
> 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to