Click here to Skip to main content
15,886,422 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Postback problem in ItemCommand event of Datagrid Pin
N a v a n e e t h4-Aug-07 0:20
N a v a n e e t h4-Aug-07 0:20 
GeneralRe: Postback problem in ItemCommand event of Datagrid Pin
Anees Mitha5-Aug-07 0:30
Anees Mitha5-Aug-07 0:30 
GeneralRe: Postback problem in ItemCommand event of Datagrid Pin
N a v a n e e t h5-Aug-07 22:27
N a v a n e e t h5-Aug-07 22:27 
GeneralRe: Postback problem in ItemCommand event of Datagrid Pin
Anees Mitha7-Aug-07 0:26
Anees Mitha7-Aug-07 0:26 
QuestionSession Checking In Class File Pin
N a v a n e e t h3-Aug-07 22:58
N a v a n e e t h3-Aug-07 22:58 
AnswerRe: Session Checking In Class File Pin
Nicejith4-Aug-07 0:35
Nicejith4-Aug-07 0:35 
GeneralRe: Session Checking In Class File Pin
N a v a n e e t h4-Aug-07 0:43
N a v a n e e t h4-Aug-07 0:43 
AnswerRe: Session Checking In Class File Pin
_mubashir4-Aug-07 0:41
_mubashir4-Aug-07 0:41 
N a v a n e e t h wrote:
Normally codebehind file used to inherit System.Web.UI.Page, Instead of this I inherited this in my CAuthentication class.


Why do you need to do this??

For your session check, you can use your existing class and I suggest you should pass the Session object to your session checker function and then check the sessions and proceed to redirection. Like

<br />
public CheckAuthentication(System.Web.SessionState.HttpSessionState oSession )   <br />
{      if ( oSession["login"] == null )<br />
         Response.Redirect("expired.aspx");   }<br />


Also pass the response object the same way.
NOTE: Remove the inheritance from your class



Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.

GeneralRe: Session Checking In Class File Pin
N a v a n e e t h4-Aug-07 0:47
N a v a n e e t h4-Aug-07 0:47 
QuestionDisplaying Binary data with Response.Write() [modified] Pin
ASPnoob3-Aug-07 22:19
ASPnoob3-Aug-07 22:19 
AnswerRe: Displaying Binary data with Response.Write() Pin
Christian Graus3-Aug-07 22:24
protectorChristian Graus3-Aug-07 22:24 
GeneralRe: Displaying Binary data with Response.Write() [modified] Pin
ASPnoob3-Aug-07 22:54
ASPnoob3-Aug-07 22:54 
GeneralRe: Displaying Binary data with Response.Write() Pin
Christian Graus4-Aug-07 0:45
protectorChristian Graus4-Aug-07 0:45 
QuestionOut of memory or system resources problem Pin
pjc*3-Aug-07 22:14
pjc*3-Aug-07 22:14 
QuestionImage gallery Pin
Vipin.d3-Aug-07 21:28
Vipin.d3-Aug-07 21:28 
AnswerRe: Image gallery Pin
Christian Graus3-Aug-07 21:30
protectorChristian Graus3-Aug-07 21:30 
GeneralRe: Image gallery Pin
Vipin.d3-Aug-07 22:37
Vipin.d3-Aug-07 22:37 
GeneralRe: Image gallery Pin
Christian Graus4-Aug-07 0:44
protectorChristian Graus4-Aug-07 0:44 
GeneralRe: Image gallery Pin
Vipin.d4-Aug-07 1:25
Vipin.d4-Aug-07 1:25 
AnswerRe: Image gallery Pin
sulabh20203-Aug-07 21:47
sulabh20203-Aug-07 21:47 
GeneralRe: Image gallery Pin
Vipin.d3-Aug-07 22:40
Vipin.d3-Aug-07 22:40 
GeneralRe: Image gallery Pin
Christian Graus4-Aug-07 0:46
protectorChristian Graus4-Aug-07 0:46 
AnswerRe: Image gallery Pin
Vipin.d4-Aug-07 2:45
Vipin.d4-Aug-07 2:45 
QuestionDatabase Connectivity !! Pin
shweta@syscom3-Aug-07 20:23
shweta@syscom3-Aug-07 20:23 
AnswerRe: Database Connectivity !! Pin
Christian Graus3-Aug-07 21:20
protectorChristian Graus3-Aug-07 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.