TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
472.9k
How to route to your actioname without Error/Application?
Aug 17 2020 9:42 AM
Hi Team
I am struggling to route to my page, what could i be missing below? I keep on getting this Error/Application.
// Route to Courses.
routes.MapRoute(
name:
"Courses"
,
url:
"courses-registration/"
,
defaults:
new
{controller=
"Home"
, action=
"CoursesRegistration"
, url=UrlParameter.Optional}
);
//GET/Courses-List
public
ActionResult CoursesRegistration()
{
return
View();
}
<div
class
=
"modal-footer"
>
<button type=
"button"
class
=
"btn btn-secondary"
data-dismiss=
"modal"
>Cancel</button>
<a
class
=
"btn btn-large btn-success"
id=
"fire"
href=
"@Url.Action("
Courses-Registration
","
Home
")"
>Create Courses</a>
<script type=
"text/javascript"
>
$(
'#fire'
).on(
'click'
, function (e) {
});
</script>
</div>
Reply
Answers (
5
)
how to add mysql database in mvc(Database first approach)
code content management