Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to call parent view from partial view if session expires..because on sesssion expires ia m redirecting to custom view bur when session expires in partail view then thst custom page is diaplying only within partial view rather whole view..so how to do it???
Posted

1 solution

Your views don't exist on the client. What you need to do is fix your code so that when the session expires, the user is taken back to the login page.
 
Share this answer
 
Comments
Member 9579525 18-Mar-14 7:29am    
same thing is happening when exception occurs.. i want to create error log while exception occur..i have done that in BaseController in OnException method but when error comes in partail view then custom view is appearing onlt in partail view..how to avoid it?
Christian Graus 18-Mar-14 17:30pm    
Why would you need an error log ? Sessions expire all the time, you just need to configure the system to take people back to the login page, and from there back to where they were
Member 9579525 19-Mar-14 0:17am    
session expire is done..i mentioned that i am handling exception using HandleError attribute and saving it in text file whenever exception occur..while doing that redirecting to custom view but when exception occurs in partial view then that custom view is displying in partial view

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