Even If the url is same can i go to different action using Html.RouteLink and Action Link.Like when i click on news link i will go to news details.The url of this page is http://localhost:1390/en-US/latestnews/125.Now if i select the ddl of language in the site header in this pagei need to go to the home page of the site.The ddl (on change) will take the same url but this time it needs to go to action in the sane controller.
Html.Action link and Html.RouteLink
1.2k Views Asked by Sagar At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in ASP.NET-MVC-ROUTING
- ASP.Net Core Web API URLs call gets rerouted to Angular project
- ASP.NET Core MVC redirect all subdirectory and files in specific folder with route in controller
- How can i solve routing issue that works on simulator but not on device for my react native driver app?
- How To Solve CreatedAtAction That Returns "No route matches the supplied values."
- Precedence When Razor View & Razor Page Point to Same Endpoint
- ASP.NET MVC route by a city then controller and action
- ASP.NET Core MVC routing with Blazor and React apps in sub folders
- Page is not found:http://localhost:28196/About/Insert?area=Admin
- ASP.NET MVC routing with multiple parameters
- Matching and Rebuilding URL Routes in ASP.NET Core
- Is it possible to connect a local database to an Asp.NET application deployed on Azure?
- ASP.NET CORE - dynamically add a attribute route to an controller with [ApiController]
- ASP.NET Core 6 Web API / C# : routing, POST method, how to set default param
- MVC Core 6 (Apache, Ubuntu) Redirect from /, //, ///, etc to main Page
- Apply different authorization policy on API depending on Http Method
Related Questions in HTML-HELPER
- @Html.ListBoxFor does not select initially selected elements
- Selecting a Row on page loadup
- Trying to implement a chatgpt using openai API into an HTML webpage
- How can I remove rows with N/A values after tabulating the database?
- How to get value of property Speaks tuff on Model using jQuery?
- How can I use codepen templates into my react js project
- using @Html.PasswordFor
- Allowing specific people to view a github html site
- How to add text input filter on Data Table for every column filter?
- trying to load text inside a masked image
- why block on img making the image fit the div vertically
- How to make question text break to new line when it is too long?
- Making a mark all as read button
- How to fill the space between the header and the navigation on?
- @Html.EditorFor in .NET Core like in .NET framework
Related Questions in ACTIONLINK
- Url.ActionLink returns wrong date format
- Passing a parameter using a class to an Html.ActionLink
- ASP.NET Core MVC : actionlink parameter to use slashes (/) insted of questionmark (?) in a query string
- asp.net cleanest way to pass object to ActionResult
- Add #something to the end of Html.ActionLink or Url.ActionLink
- HTML ActionLink not sending to desired url in a new tab
- Asp.net MVC action link
- @Ajax.ActionLink redirects to previous page instead to send data to controller
- HTML button from ActionLink in MVC5
- How to convert Actionlink group to Dropdown List
- ASP.NET Core MVC ActionLink arguments
- how to click action link menu option in JavaScript
- How to pass headers with @Url.Action() for jwt authorization
- Migrating TagBuilder core methods from ASP.NET MVC 5 to ASP.NET Core (.NET 5)
- ASP.NET MVC, Actionlink
Related Questions in ROUTELINK
- How to make my gatsby link work properly in netlify?
- Can't reach user component using -> [routerLink]=" '/profile/ ' + currentUser.id"
- Angular 8 - URL loads with routerLink but doesn't show when directly access in the browser in LOCALHOST
- Angular 6 - RouterLink navigates but not changing URL
- Clicking on routelink url not passing all the data to action
- How can I add a click event to innerHtml in Angular 4
- Angular2 RouteLink doesn't work in "a" tag but it's work when I tip it in navigation bar of browser
- Angular: Multiple nested routes
- routeLink not rendered coorrectly while testing
- .net HTML.RouteLink passes parameter as key-value pair not rout
- Installing the correct DLLs to resolve ActionLink(...) and RouteLink(...) in a cshtml view
- RouteLink testing angular2
- Angular2 routeLink not working when querystring value is a 1
- Insert current URL into @Html.RouteLink parameter to build a link
- ASP MVC ActionLinks with HTML content
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The URL will direct to the controller/action on the first routing entry that it matches regardless of how you generate it. I'm not sure exactly what you are trying to accomplish, but I suspect that what you need to do is use javascript to direct to a different url, perhaps generated with
Html.RouteLinkinstead ofHtml.ActionLinkbased on the value of the drop down list when it's selected. If I'm misunderstanding what you are trying to do, please clarify.