469,648 Members | 1,402 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

asp:textbox embedded in repeater

I have an asp:textbox embedded in a repeater. I would like to default a
value in the textbox, but when I try to use the format:

<asp:textbox id="qty" runat="server">
<%# DataBinder.Eval(Container.DataItem,"Quantity") %>
</asp:textbox>

I get an error.

Do I need to set the value in code?

Thanks,

Craig Buchanan
Nov 18 '05 #1
2 1291
<asp:textbox id="qty" runat="server"><%# DataBinder.Eval(Container.DataItem,"Quantity") %></asp:textbox

Instead tr

<asp:textbox id="qty" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Quantity") %>'></asp:textbox

HTH
Suresh.
Nov 18 '05 #2
thanks, that worked. how come it doesn't show up in IntelliSense?

"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
<asp:textbox id="qty" runat="server"><%# DataBinder.Eval(Container.DataItem,"Quantity") %></asp:textbox>
Instead try

<asp:textbox id="qty" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Quantity") %>'></asp:textbox>
HTH,
Suresh.

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Joe Fawcett | last post: by
2 posts views Thread by Peter Kirk | last post: by
5 posts views Thread by Scott Lyon | last post: by
3 posts views Thread by Kelly Leahy | last post: by
reply views Thread by Luis Esteban Valencia | last post: by
3 posts views Thread by Joe Fawcett | last post: by
reply views Thread by datakix | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.