×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    2

    [moved] Switching the html page from the MainPage.xaml.cs

    In my windows 8 version of my phonegap application I am trying to use an application bar to switch to certain pages. The following code will not form a valid URI to navigate to. If anyone has a work around or way to make this particular code work it would be appreciated.

    Code:
            private void ApplicationBarIconButton_Click(object sender, EventArgs e)
            {
               try
               {
                   if (button.Text == "Logout")
                   {
                       //IsolatedStorageSettings.ApplicationSettings.Remove("UserName");
                       //IsolatedStorageSettings.ApplicationSettings.Remove("Password");
                       //NavigationService.Navigate(new Uri("/www/index.html", UriKind.Absolute)); does not work
                   }
                   else if (button.Text == "Privacy")
                   {
    
                   }
                   else if (button.Text == "Guest")
                   {
                   }
               }
               catch (Exception ex)
               {
                   string esfjdlkfj; //placeholder
               }
    
            }
        }
    }
    Last edited by wizard_hu_; 2013-06-24 at 15:30. Reason: [CODE][/CODE] tags added

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: [moved] Switching the html page from the MainPage.xaml.cs

    Without any actual experience regarding your question, my impression is that /www/index.html is not an absolute URI. See the remark on http://msdn.microsoft.com/en-us/libr...m.urikind.aspx and similar pages.

  3. #3
    Registered User
    Join Date
    Jun 2013
    Posts
    2

    Re: [moved] Switching the html page from the MainPage.xaml.cs

    Sorry that was a change I made to try and figure out if that was part of the problem it is currently UriKind.Relative

Similar Threads

  1. Using a .xaml page as PivotItem Content
    By Kunal Prime in forum Windows Phone General
    Replies: 10
    Last Post: 2013-03-12, 05:05
  2. Which events fire on Page Activation - MainPage.xaml.cs
    By Shayan Rais in forum Windows Phone General
    Replies: 4
    Last Post: 2013-03-10, 08:02
  3. html controls for symbian_problems in switching views
    By curiouswalker in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-06-04, 07:01
  4. problem in switching to other page in from listbox
    By prashantchougule.cs in forum Symbian
    Replies: 2
    Last Post: 2009-11-18, 12:44
  5. Switching between views( Going from home page to login page)
    By samuelpaulc in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-04-14, 12:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×