R
remy.bur
Hi,
When adding an anchor (which is runat="server") in a user control, the
link generated will be based on the user control location and not on
the page which is using the control location.
For example, if the user control is located in an include folder, here
is what I will get:
<a href="include/home.aspx">
instead of
<a href="home.aspx">
I can't use "~/home.aspx" as a value for the href property because the
result I want is <a href="home.aspx"> and not
<a href="/home.aspx">
Any suggestion ?
Thanks in advance
When adding an anchor (which is runat="server") in a user control, the
link generated will be based on the user control location and not on
the page which is using the control location.
For example, if the user control is located in an include folder, here
is what I will get:
<a href="include/home.aspx">
instead of
<a href="home.aspx">
I can't use "~/home.aspx" as a value for the href property because the
result I want is <a href="home.aspx"> and not
<a href="/home.aspx">
Any suggestion ?
Thanks in advance