Questions tagged [routelink]
31 questions
122
votes
4 answers
What's the difference between RouteLink and ActionLink in ASP.NET MVC?
I think that the title pretty much sums it up:
What's the difference between RouteLink() and ActionLink() in ASP.NET MVC?
i.e. when do you use Html.RouteLink() and when do you use Html.ActionLink() in your View?

Guy
- 65,082
- 97
- 254
- 325
7
votes
3 answers
Angular 8 - URL loads with routerLink but doesn't show when directly access in the browser in LOCALHOST
I have developed the Angular 8 application and I am using the routerLink to navigate the components which work fine without any issue but when I enter the same URL directly in the browser it doesn't show anything and in the console, I am seeing the…

Mahesh G
- 1,226
- 4
- 30
- 57
6
votes
2 answers
Can an MVC2 or MVC3 html.routelink contain « and »?
What's the syntax for displaying this? My program will always render « literally in the pagination helper I am creating, and since the switch to MVC3 there seems to be no way to even hack it with Eval( string.FromCharCode )

whoblitz
- 1,065
- 1
- 11
- 17
4
votes
4 answers
How to make routelink return the correct URL?
here is the procedure to duplicate the issue.
start new mvc 4 project.
add the following lines to the RegisterRoutes() method just before the "Default" route
routes.MapRoute(
name: "Test",
url: "Test/{action}",
defaults: new…

Derek Liang
- 1,142
- 1
- 15
- 22
3
votes
1 answer
How to create link in asp.net mvc with html tags in title?
How can i create link using this - http://msdn.microsoft.com/en-us/library/dd505243.aspx
html.RouteLink using html tags in title?
In result i would see something like this :
1

valisimo
- 613
- 2
- 9
- 14
2
votes
2 answers
ASP.net MVC RouteLink and optional routeValues
I'm trying to figure out how to conditionally set a routeValue which is optional.
I have
<%= Html.RouteLink("<<<","Products",new { page=(Model.Products.PageIndex) }) %>
If a visitor clicks on a "category" I only show products of that category, but…

dtc
- 10,136
- 16
- 78
- 104
2
votes
1 answer
How to make my gatsby link work properly in netlify?
I am trying to route between pages in gatsby. It works in local host but sadly not in netlify.
The route link is My-site.com/about/ It doesn't work in netlify but when I reload the page the route become My-site.com/About/ and the page content…

Subreena
- 158
- 1
- 1
- 10
2
votes
2 answers
C# MVC: User Password Reset Controller: Issues with email addresses as usernames
I have written the code below for resetting users passwords (am using the aspnet membership api) in an C# MVC application, and tested successfully on a sample tutorial application (MVC Music Store). Skip to the end if you wish to read problem…

109221793
- 16,477
- 38
- 108
- 160
2
votes
1 answer
RouteLink testing angular2
I am testing a Component that use the RouteLink directive like this way :
let comp: AppComponent;
let fixture: ComponentFixture;
let el: DebugElement;
let injector: Injector;
let languageService: TranslateService;
let location:…

user3518668
- 359
- 1
- 4
- 14
1
vote
1 answer
1
vote
1 answer
routeLink not rendered coorrectly while testing
I have header component definition as following:
import { Component, OnChanges, Input } from '@angular/core';
@Component({
selector: 'app-section-header',
template:`
1
vote
1 answer
tooltip for html.RouteLink
is it possible to write tooltip for html.RouteLink?
my link:
<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)},null)%>
Thank and take care,
Ragims

r.r
- 7,023
- 28
- 87
- 129
1
vote
0 answers
Angular2 routeLink not working when querystring value is a 1
I have this router link:
Test
In my component I define someVal like this:
export class RepairReturnCountByCountry {
...
someVal: number = 1;
...
}
When the value is 1 I get…

Don Chambers
- 3,798
- 9
- 33
- 74
1
vote
1 answer
Html.ActionLink, Url.ActionLink and Html.RouteLink return empty urls
Html.ActionLink, Url.ActionLink and Html.RouteLink return empty urls, even though the target url is valid and displayed properly from url?
I played around with the route but, it keeps return empty url without any exception.

Sky Kim
- 159
- 10
1
vote
2 answers
Asp.net MVC add textbox value to routelink
I am trying to learn asp.net MVC and having an issue to submit a textbox value to a model.
I have a text box in which users will type a number and when they hit the routelink the routelink will take the value from the textbox and assigns it to one…

yoli
- 13
- 3