MVC Jquery go to controller action

In Jquery, I need to tell the program to go to EmployeeController and Empl action. How do I tell it do this. I want to simple way to do this without using ajax.

Answers


window.location.href = "/{controller}/{action}" //in your case, /employee/empl

This works because of the routes specified in your Global.asax.cs file. I suggest you read up on how this works as it's one of the fundamentals of MVC....


Need Your Help

Custom cursor in WPF?

.net wpf image cursor

I want to use an image or icon as a custom cursor in WPF app. What's the best way to do it?

unity3d - can't show facebook profile image on the device ( simulator works perfect )

c# facebook unity3d facebook-unity-sdk

I am using Unity3d (c#) with facebook API. I try to show my profile image on the screen when I run it on the unity simulator everything works perfect and I got the image. but when I build a version...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.