CodeSolution.org

Your Problems Our Solutions

Skip to content
  • Home
  • All Articles
  • .Net Core
  • SQL Server
  • Interview Questions
CodeSolution.org

Call action from button click event in Asp.Net MVC

Share on Facebook Share
Share on TwitterTweet
Share on LinkedIn Share

We can call action from button click event using location.href.

<button id="btnSave" onclick="location.href='@Url.Action("Action", "Controller", new { Parameter = "Value" })'">Save</button>

Share on Facebook Share
Share on TwitterTweet
Share on LinkedIn Share

Related posts:

  1. Contact Us
  2. How to call child action method in Asp.Net MVC.
  3. Send email using smtp server.
  4. @Html.Action vs @Html.RenderAction in Asp.Net MVC
This entry was posted in Asp.Net MVC and tagged Call action from button click event, Call action from button click event in Asp.Net MVC, call action from button click event using location.href., Call action with parameter from button click event, Call action with parameter from button click event in Asp.Net MVC, how to Call action from button click event, how to Call action from button click event in Asp.Net MVC, pass parameter with button click event on September 17, 2016 by Hitesh Kumar.
Avatar

About Hitesh Kumar

A Software Developer with more than 5+ years of rich experience in Software Development in Microsoft Dot Net Technology.

View all posts by Hitesh Kumar →

Post navigation

← How to host a window service using installUtil.exe. Soap vs Rest API →

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

My favourites

Categories

  • Asp.Net (43)
  • Asp.Net Core (3)
  • Asp.Net MVC (5)
  • Asp.Net Rest API (2)
  • ASP.Net Web API (4)
  • C# (45)
  • Entity Framework (1)
  • HTML5 (6)
    • Canvas (5)
  • Interview Questions (178)
    • Asp.Net (10)
    • Asp.Net MVC (32)
    • Asp.Net Web API (1)
    • C# (30)
    • Entity framework (15)
    • JAVA (7)
    • LINQ (6)
    • SQL Server (30)
    • WCF (12)
    • WPF (40)
  • JAVA (32)
    • Design Pattern (3)
    • Hibernate (3)
    • Spring Tutorial (2)
  • JavaScript (3)
  • Jquery (5)
  • Linux (7)
  • Logical Problems (10)
  • My SQL (5)
  • PHP (1)
  • Spring (3)
  • SQL Server (38)
  • Uncategorized (1)
  • Web Service (2)
  • Wicket Framework (2)
  • WPF (1)
  • XML (1)

Recent Posts

  • Global exception handling in asp.net core
  • TempData is null in asp.net core
  • How to disable camel case in asp.net core?
  • Delete, Backspace, Tab and Arrow keys are not working in Firefox when applying validation.
  • How to encode URI components in javascript?

Quick Links

ALL ARTICLES
INTERVIEW QUESTIONS
C# LOGICAL QUESTIONS
FOLLOW
CONTACT US

communities & Groups

Facebook Group

Follow us on social Network

Follow on Facebook Share
Follow on TwitterTweet
Follow on LinkedIn Share
Proudly powered by WordPress
Scroll Up