resident
سه شنبه 16 مهر 1392, 16:41 عصر
من تو Session_End داخل Global کد زیر رو نوشتم که صفحه لاگین رو نشون بده
  
Response.RedirectToRoute("Default");
  
خطای زیر رو میده:
  
Response is not available in this context
  
اینم گذاشتم :
  
HttpContext.Current.Response.RedirectToRoute("~/Account/Login");
  
خطا میده که:
  
Object reference not set to an instance of an object.
  
 
  
مشکل کار کجاست؟
Response.RedirectToRoute("Default");
خطای زیر رو میده:
Response is not available in this context
اینم گذاشتم :
HttpContext.Current.Response.RedirectToRoute("~/Account/Login");
خطا میده که:
Object reference not set to an instance of an object.
مشکل کار کجاست؟