Simple Binding tag

I have a linkbutton and I want to bind the Id value to PostBackUrl. Tried below and it doesnt work:
PostBackUrl='VewApplicant.aspx?Id=<%# Eval("Id") %>'

How can I do tis?
LVL 8
CamilliaAsked:
Who is Participating?
 
eguilhermeConnect With a Mentor Commented:
is it inside a gridview/datalist ?

try like this:

PostBackUrl='<%# "VewApplicant.aspx?Id=" + DataBinder.Eval(Container.DataItem, "Id").ToString() %>'

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.