Questions tagged [navigateurl]

Loads the document at the location indicated by the specified Uri into the WebBrowser control, replacing the previous document.

The WebBrowser control maintains a history list of all the Web pages visited during a browsing session. When you call this overload, the WebBrowser control navigates to the specified URI and adds it to the end of the history list. Use the GoBack method to return the control to a previous page in the navigation history. Use the GoForward method to return to a later page in the navigation history after navigating backward.

128 questions
145
votes
16 answers

Router Navigate does not call ngOnInit when same page

I am calling router.navigate on same page with some query string parameters. In this case, ngOnInit() does not call. Is it by default or do I need to add anything else ?
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111
16
votes
1 answer

how to unit test router.navigate in angular app

I am running unit test for angular app, I want to unit test if navigation is working correctly in angular app. if (this.customer.length == 0) { this.router.navigate(['/nocustomer']); } And the unit test for this it(`should navigate to…
karthik_personal
  • 369
  • 1
  • 3
  • 14
16
votes
4 answers

.NET C#: WebBrowser control Navigate() does not load targeted URL

I'm trying to programmatically load a web page via the WebBrowser control with the intent of testing the page & it's JavaScript functions. Basically, I want to compare the HTML & JavaScript run through this control against a known output to…
Dave
  • 243
  • 1
  • 4
  • 9
11
votes
4 answers

Angular 5 router.navigate does not work

I'm trying to redirect a user to another page based on some condition. Here's my example login component: ngOnInit() { console.log(">>> router", this.router) console.log(">>> activatedRoute", this.activatedRoute) if…
Will
  • 1,718
  • 3
  • 15
  • 23
8
votes
3 answers

What is the replacement for performance.navigation.type in angular?

I have this code in order to know if the page is reload by the user, unfortunately is deprecated. I want to know if angular has this approach. if (performance.navigation.type === 1) { console.log('is refreshed') } if (performance.navigation.type…
Tabares
  • 4,083
  • 5
  • 40
  • 47
6
votes
2 answers

webbrowser not navigating if you're not looking at it

I got a strange problem. I have a tabcontrol and 3 tabs. On every tab i got a webbrowser control on it. They all navigate to a website. But it only navigates if you're actually looking at the webbrowser control. So having it minimized on taskbar or…
Yustme
  • 6,125
  • 22
  • 75
  • 104
6
votes
3 answers

PostbackUrl vs NavigateUrl

Can someone tell me the different between LinkButton.PostBackUrl and HyperLink.NavigateUrl? I've got a asp.net 2.0 application that uses both methods throughout the application and everything works fine. However if I connect to the application…
Jeremy Coenen
  • 1,085
  • 1
  • 12
  • 19
5
votes
1 answer

c# webbrowser control does not navigate to another page

I have a console application and i've defined a webbrowser inside it. Firstly, i navigate to a page and fill a login form and invoke the submit button to login. After that, i want to go to another page in the same site using the same webbrowser but…
3
votes
1 answer

html parser error message: Parser Error Message: The server tag is not well formed

I am getting the error Parser Error Message: The server tag is not well formed. on the code line below: '…
Frank
  • 2,015
  • 10
  • 36
  • 57
3
votes
3 answers

How to cancel or dispose current navigation at WebBrowser element

I am developing a C#, .NET Framework 4.0 application. It visits some pages with an order. Sometimes I have to move to the next page without waiting for the previous one to finish the job. How can I cancel the previous navigation process of the…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
3
votes
0 answers

how to navigate to 404 page by using Injectable service in angular2

this is my service : import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptions, URLSearchParams } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Router} from…
Charles
  • 123
  • 2
  • 2
  • 9
3
votes
1 answer

Obtaining the URL for a Particular Page in DotNetNuke 7

I have created a page in DNN 7 and added the standard feedback module available at Codeplex to it. Now I want to link to this page using a hyperlink in the middle of another page (not from a menu). I am able to see the URL for the feedback page…
Kalory
  • 67
  • 1
  • 6
2
votes
4 answers

How to deal with special characters in ASP.NET's HyperLink.NavigateUrl?

I am currently having troubles figuring out how to handle a filepath to be (dynamicly) passed out to a HyperLink control's NavigateUrl property. Let's say that I'm trying to refer to a file named jäynä.txt at the root of C:. Passing…
vipirtti
  • 1,058
  • 4
  • 15
  • 24
2
votes
1 answer

How to add to current route and navigate - Angular

I'm working in an Angular 9 project. I have a table, that's reusable, for now I have two (Parent) components using the table. I want users to be able to select an item on the table and be routed to that items details page. The issue is that these…
ineedtoknow
  • 1,283
  • 5
  • 28
  • 46
2
votes
2 answers

ReactJS Changing the route using a button that is rendering on other ReactDOM

I have two rendering ReactDOM at my index.js ReactDOM.render(
, document.getElementById('header')); ReactDOM.render(, document.getElementById('root')); Now, inside my App.js I have three route
Dylan
  • 1,121
  • 1
  • 13
  • 28
1
2 3
8 9