Solved

asp.net mvc -- @Html.ActionLink directory ?

Posted on 2013-10-28
1
462 Views
Last Modified: 2013-10-28
http://localhost:63802/UserRole/Index has
@Html.ActionLink("Create User", "/Account/Register", new {})
which goes to
http://localhost:63802/UserRole/Account/Register
------------------------------------------------------------------------------------
How can I change the
http://localhost:63802/UserRole/Index
code so it goes to
http://localhost:63802/Account/Register
without the "UserRole/" subdirectory ?
0
Comment
Question by:finance_teacher
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39605796
Use the overload that accepts the controller name to use:

@Html.ActionLink("Create User", "Register", "Account")

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now