Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to redirect user on or before page load

$
0
0

Hi,

what is best practice for redirecting a user when he opens a specific page.

I have a solution with a custom master page and several webparts. When a user opens my solution (every page based on the same master). 

What i need to do now is, when the user opens the page i have to check before rendering the page and the webparts some criteria. When the user is not allowed to open the page i need to redirect him to another location.

How could q redirect a user in a sharepoint solution?

I thought about some ways:

- develop a webpart (without any rendering) and put in onprerender event the check and the redirect

- create a codebehind for the masterpage

- create an httpmodule

...

What would you prefer? How could i solve it?


Best Regards
Bog

Developers Field Notes | www.bog1.de


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>