buttons to page forward

0
0

I want to load different pages in the application

using new page1.show(), but then the browser buttons to page forward and page back don’t work, what am I doing wrong.

 

Thank you.

  • You must to post comments
0
0

Wisej.NET creates Single Page Applications (SPAs), it’s not a traditional HTML/JS/CSS page assembler. There is no navigation between HTML pages because there is only 1 page.

Usually in SPAs the browser’s navigation is done using the hash portion of the URL (called “deep linking”).

Wisej makes it available through the Application.Hash  property and Application.HashChanged event (see API docs).

These are some referenced to learn more about SPAs and deep linking:

https://web.stanford.edu/class/cs142/lectures/SPA.pdf

https://gingter.org/2017/03/20/deep-link-angular-spa-iis/

https://www.google.com/search?q=single+page+application+deep+linking+hash&rlz=1C1CHBF_enUS949US949&ei=2Oh2YrLsBamaptQPwPeuwA0&ved=0ahUKEwiyuK3Trs73AhUpjYkEHcC7C9gQ4dUDCA4&uact=5&oq=single+page+application+deep+linking+hash&gs_lcp=Cgdnd3Mtd2l6EAMyBQghEKABMgUIIRCgATIFCCEQoAEyBQghEKABOgcIABBHELADOgYIABAWEB46BQgAEIYDSgQIQRgASgQIRhgAULAEWM0HYP4OaAFwAHgAgAGJAYgBiAWSAQMwLjWYAQCgAQHIAQjAAQE&sclient=gws-wiz

In short:

  • Show or hide any page you like in any sequence when the hash changes.
  • You can set the to whatever you like to match a page or form or whatever else you want to show in connection with the browser’s prev/next buttons.
  • When you set the hash (i.e. Application.Hash = “MyPage44”) it’s added to the browser’s history.

Check also one of our examples with deep linking in github.

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.