in my asp.net website I have menu control and there are those items:
<asp:menuitem ... navigateURL="~/Admin/admin.aspx">
<asp:menuitem ... navigateURL="~/Admin/search.aspx">
I want force the asp.net think (or display in web browser adress bar), that I am on admin.aspx, but actually be redirected to search.aspx. Is it somehow possible ?
Thanks.
Doing that with the markup you showed, no, it’s not possible. You’ll need to either use an
<iframe>setting thesrcproperty via javascript or you do it from code-behind usingServer.Transferas opposed toResponse.Redirect.