hello guys, I have a FormView where I show some data from a client, such as your id_client, name, surname, among others. I'm intending to put a link or a button to redirect to another page, but this should pass the customer id in querystring to be picked up later. my question is how to pass this id_client since the formview is populated using data loaded from a datasource. This problem could be solved this way: <a href = "~ / Client / ShowClient.aspx? id = <% # DataBinder.Eval (Container.DataItem," id_client "). ToString ()%> '> Show </ a> but this does not work because the page I have my formview is in another folder you want to redirect.
<asp:hyperlink runat="server" navigateurl='<%# string.Format("~/Client/ShowClient.aspx?id={0}", HttpUtility.UrlEncode(Eval("id_client").ToString()))%>' Text='Redirect'> </asp:hyperlink>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)