Im trying to add a button in my grid view that will redirect me to another page and pass the id of the movie. This is my code
<asp:Button ID="Button1" runat="server" CausesValidation="False"
PostBackUrl="~/Add/CheckMovie.aspx?movie=<%#Eval("mov_id")%>"
/>
A while back in a different app I used similar code and it worked fine
<a href="editUser.aspx?usr=<%# Eval("usr") %>"><%# Eval("usr") %></a>
Is it because Im using a different tag, or maybe because of the url ?
PostBackUrl='<%# "~/Add/CheckMovie.aspx?movie=" + Eval("mov_id") %>'