Click here to Skip to main content
14,421,641 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a frame which displays certain websites. All allowed websites are saved in a sql Db. I am using entity framework to link to the DB. I want to block the user from accessing external links but allow them to navigate within the allowed websites.

I'm completely stumped :~, I don't know where to start :confused:. Any help would be greatly appreciated.

Updated 13-Feb-11 11:56am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Handle the Frame.Navigating event and set NavigatingCancelEventArgs.Cancel to true for URIs you want to block.
Noelle Martin 13-Feb-11 11:19am
Thanks for your help but I'm still lost. :(
Nish Nishant 13-Feb-11 11:23am
Why are you still lost? I just told you exactly what you need to do!
Noelle Martin 13-Feb-11 15:10pm
I'm really not very good at wpf or xaml, as I'm certain you have guessed, but I think I've figured out what you were telling me to do. Thanks.
Nish Nishant 13-Feb-11 16:55pm
Alright, good to know that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100