there's no error message now but it still doesn't work.
i used Bind Method but it also not work
wow....it driving me crazy...
help..me..
Yesterday....i've posted another.question...is like below
================================================== ============
in asp.net 2.0
i want to get [ CommentId ] value from database.
BoardCommentWrite have a CommentId property as public
so when i attach BoardCommentWrite usercontrol i want to get CommentId value
from DataList so i write my code like below..
<DataList >
<ItemTemplate>
<uc1:BoardCommentWrite ID="BoardCommentWrite1"
CommentId='<%# Bind("CommentId") %>' runat="server" />
</ItemTemplate>
</DataList >
that' why i have to distinguish between controls but it's not working
it give me " null value "
is there any way to solve this problem?
thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
Oh I'm sorry, your problem there is the quoting. You need your CommendId=
to use single quotes, as follows:
<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId='<%#
Eval("CommentId") %>' runat="server" />
--
Joshua Mitts
jo****@msn.com
"somequestion" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... <DataList >
<ItemTemplate>
<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId="<%#
Eval("CommentId") %>" runat="server" />
</ItemTemplate>
</DataList >
my CODE is like this. datalist make a lof of BoardCommentWrite
usercontrol that' why i have to distinguish between controls but it's nor
working
complier say
Error 1 The server tag is not well formed.
C:\Project2005\WebSite\Minoworks\Board\BoardCommen t.ascx 72
thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:u6****************@TK2MSFTNGP10.phx.gbl... I'm not clear on what you want to accomplish with the Eval() command?
Can you describe exactly what you want to do?
If you want to bind data, you need to use DataBinder.Eval("<data column
goes here>"), and then use DataBind() on your control or page.
--
Joshua Mitts
jo****@msn.com
"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />
this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.