0

i successfully installed FriendlyUrl from Nuget using Install-Package Microsoft.AspNet.FriendlyUrls -Pre

now I am trying to do this in my default page :

<a href="<%: FriendlyUrl.Href("~/About","Watch") %>">About.aspx</a> 

but this error occurred : 'FriendlyUrl' does not exist in the current context

how can I fix it ?

1 Answer 1

2

Add following line on top of your page:

<%@ Import Namespace="Microsoft.AspNet.FriendlyUrls" %>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.