Click here to Skip to main content
15,891,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

Thanks,
Noelle
Posted
Updated 13-Feb-11 10:56am
v2

1 solution

Handle the Frame.Navigating event and set NavigatingCancelEventArgs.Cancel to true for URIs you want to block.
 
Share this answer
 
v2
Comments
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900