Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Silverlight 3
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Silverlight 3 Discuss Microsoft Silverlight 3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Silverlight 3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 3rd, 2010, 07:54 AM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Navigation to a Page

Hi,

Im trying to create a HyperlinkButton that will cause the browser to navigate to another page.

I'm doing the following:

private void hyperlink_Click(object sender, RoutedEventArgs e) {
testpage1 page = new testpage1();

Uri _uri = new Uri("http://www.silverlight.net", UriKind.Absolute);

NavigationService ns = this.NavigationService;

this.NavigationService.Navigate(_uri);
}

The thing is that the this.NavigationService is always null and since that I get exceptions.

Is that the right way to perform a navigation between pages ?
What do I do wrong ?

Thanks,
Ryan
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
page with navigation bar problem zouky ASP.NET 1.0 and 1.1 Basics 0 October 21st, 2004 03:03 AM
Page Navigation Formatting pvasudevan Crystal Reports 2 October 19th, 2004 11:02 AM
Page Navigation surendran PHP How-To 1 August 2nd, 2004 12:57 PM
page navigation nusrati PHP Databases 3 July 9th, 2004 09:08 AM



All times are GMT -4. The time now is 11:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.