0
Follow
0
View

Blazor Navigation manager to specified URI (google.com)

edream_zhao 注册会员
2023-01-25 10:32

While void() isn't valid C# I think we can guess what you are trying.

Just "google.com" will be seen as a local (relative) URI, that won't work.

Use:

//NavigationManager.NavigateTo("google.com");
  NavigationManager.NavigateTo("https://google.com");
lanbo_sama 注册会员
2023-01-25 10:32

If you want to visit Google page with click of button, you can do it like this


About the Author

Question Info

Publish Time
2023-01-25 10:32
Update Time
2023-01-25 10:32