Hi
It is giving error - Server tags cannot contain <% ... %> constructs.
<asp:LinkButton ID="lnkbtnAdd" runat="server" PostBackUrl="<%="~/Admin/Manage?val="AES.Encrypt(Request.QueryString["val"]) %>" class="btn bg-info btn-sm ml-3"><i class="icon-plus3 mr-2"></i>Add</asp:LinkButton>
Thanks
Set the postback url in the page load event.
lnkbtnAdd.PostBackUrl = string.Format("~/Admin/Manage.aspx?val={0})", Request.QueryString["val"];
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.