//---------------------------------------------------------------------------------------------------- public void Open_Sub() { BasePage.WindowResized(); if (window.location.hash == "") { window.location.hash = "#00-Home"; } PageIdentifier.GetFromUrlHash().Launch(); // this needs to be called at least one time to setup KeyboardController: //var keyboardController = Keyboard.KeyboardController.GetFromDocument(); // turned off in ASPdatabase }
public void OnWindow_HashChange() { if (this.IgnoreNext_HashChange) { this.IgnoreNext_HashChange = false; return; } document.title = "ASPdatabase.NET"; var newPageIdentifier = PageIdentifier.GetFromUrlHash(); if (this.SubPage.PageId.PageType == newPageIdentifier.PageType) { this.SubPage.PageId = newPageIdentifier; } else { newPageIdentifier.Launch(); } }