1

i used one link in my asp.net mvc project like this way.

 <a 
href="<%= Url.Action("DisplayAction", "TempController") %>" title="Display" 
/>               

it works properly in calling controller.But,i want to call normal aspx in that way.

For eg,

 <a href="<%= Response.Redirect "WebForm.aspx" %>" title="Display" />  

Please give me right ways.

Regards

Indi

2 Answers 2

4

If you just want to navigate to a normal page the standard way from HTML, you just set the href of the anchor attribute:

<a href="WebForm.aspx" title="Display">Link Text</a> 
Sign up to request clarification or add additional context in comments.

Comments

0

For MVC5, this one worked for me:

<a href="@Url.Action("AboutUs","OASiteContent")" type="submit" class="lnkbtn lnkbtn_2 Rectangle">I'm new here</a>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.