Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i wants to bind the start date and end date in link button withe including our content but there is error server tag

plz any one provid the correct answer

my wrong code is


<asp:LinkButton ID="lnkv" runat="server" CommandName="selectv" Text=Voting process is open between: <%# DataBinder.Eval(Container.DataItem,"VotingStartDate")%>
to <%# DataBinder.Eval(Container.DataItem,"VotingEndDate")%>></asp:LinkButton>
Posted

1 solution

I assume this is inside a databound control.

wrote:
but there is error server tag


If you give us the actual error message, we may be able to help. Edit your post to add the necessary detail, pls.

Oh, you didn't put your text in quotes. That's going to break it, every time.

Next time, do tell us the real error message tho, not half of it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900