Stack Exchange
Stack Overflow
  • Questions
  • Tags
  • Users
  • About
Stack Overflow
    1. Public
    2. Questions
    3. Tags
    4. Users
    5. About

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?
.net asp.net-mvc html-helper actionlink routelink
asked May 14 '09 at 18:03
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…
angular angular-routing angular-routerlink routelink
asked Aug 15 '19 at 14:27
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 )
asp.net-mvc asp.net-mvc-3 routelink
asked Jan 27 '11 at 15:12
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…
asp.net-mvc asp.net-mvc-routing routelink
asked Nov 23 '12 at 00:17
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
asp.net-mvc routelink
asked May 20 '11 at 06:29
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…
asp.net-mvc routevalues routelink
asked May 20 '09 at 10:30
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…
javascript gatsby routelink
asked Sep 25 '20 at 14:33
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…
c# asp.net-mvc routelink
asked Jan 10 '11 at 10:15
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:…
angular karma-jasmine angular2-routing angular2-testing routelink
asked Sep 21 '16 at 12:38
user3518668
  • 359
  • 1
  • 4
  • 14
1
vote
1 answer

Angular 6 - RouterLink navigates but not changing URL

app.component.html
app-routing.module.ts import { NgModule } from…
angular angular-cli angular-router routelink
asked Jun 01 '18 at 18:50
balachander j
  • 53
  • 1
  • 1
  • 6
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:`

{{name}}

unit-testing angular routelink
asked Mar 14 '17 at 21:37
happyZZR1400
  • 2,387
  • 3
  • 25
  • 43
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
c# asp.net-mvc html.actionlink routelink
asked Aug 31 '10 at 08:01
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…
angular angular2-routing routelink
asked Mar 16 '16 at 21:02
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.
asp.net-mvc asp.net-mvc-2 routes actionlink routelink
asked Aug 15 '10 at 00:30
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…
asp.net-mvc routelink
asked Mar 01 '10 at 01:19
yoli
  • 13
  • 3
1
2 3 Next