Click here to Skip to main content
15,922,574 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpopup clender is not working in master pages [modified] Pin
findtango11-Jul-08 0:10
findtango11-Jul-08 0:10 
Questionhelp...doc to tiff Pin
yang12310-Jul-08 23:59
yang12310-Jul-08 23:59 
AnswerRe: help...doc to tiff Pin
Paul Conrad11-Jul-08 10:09
professionalPaul Conrad11-Jul-08 10:09 
QuestionSMS Sending Problem Pin
Bhim Prakash Singh10-Jul-08 23:56
Bhim Prakash Singh10-Jul-08 23:56 
Questionloop only affecting last row Pin
eyeseetee10-Jul-08 23:38
eyeseetee10-Jul-08 23:38 
AnswerRe: loop only affecting last row Pin
Sherin Iranimose11-Jul-08 0:38
Sherin Iranimose11-Jul-08 0:38 
GeneralRe: loop only affecting last row Pin
eyeseetee11-Jul-08 0:52
eyeseetee11-Jul-08 0:52 
GeneralRe: loop only affecting last row Pin
Sherin Iranimose11-Jul-08 1:10
Sherin Iranimose11-Jul-08 1:10 
GeneralRe: loop only affecting last row Pin
eyeseetee11-Jul-08 1:21
eyeseetee11-Jul-08 1:21 
Questionreceive error Pin
nithydurai10-Jul-08 23:14
nithydurai10-Jul-08 23:14 
AnswerRe: receive error Pin
Sam Xavier11-Jul-08 0:39
Sam Xavier11-Jul-08 0:39 
QuestionDynamically administrate ASP.NET Pin
xax10-Jul-08 22:57
xax10-Jul-08 22:57 
QuestionLike gmail how to add and send multiple attachment files?, Pin
Member 387988110-Jul-08 22:54
Member 387988110-Jul-08 22:54 
AnswerRe: Like gmail how to add and send multiple attachment files?, Pin
Sam Xavier11-Jul-08 0:58
Sam Xavier11-Jul-08 0:58 
QuestionHttpContext.Current.Session is getting null Pin
ash0410-Jul-08 22:05
ash0410-Jul-08 22:05 
AnswerRe: HttpContext.Current.Session is getting null Pin
N a v a n e e t h10-Jul-08 22:13
N a v a n e e t h10-Jul-08 22:13 
ash04 wrote:
and when i am checking HttpContext.Current.Session, it is showing that it is null. I cant understand why it is null.


Because you base page has stopped calling "OnInit" on it's base page which is "System.Web.UI.Page". So always override it
public class DD_AdmBasePage : System.Web.UI.Page
{
     public string LoginUser;
     
     public DD_AdmBasePage()
     {
         LoginCheck();
     }

     protected void LoginCheck()
     {
         if (HttpContext.Current.Session["LoginUser"]!=null)
             LoginUser= HttpContext.Current.Session["LoginUser"].ToString();
         else
             HttpContext.Current.Response.Redirect("~/login.aspx");
     }

     protected override void OnInit(EventArgs e) {
          base.OnInit(e);
     }
}


All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: HttpContext.Current.Session is getting null Pin
ash0410-Jul-08 22:28
ash0410-Jul-08 22:28 
GeneralRe: HttpContext.Current.Session is getting null Pin
N a v a n e e t h10-Jul-08 22:42
N a v a n e e t h10-Jul-08 22:42 
GeneralRe: HttpContext.Current.Session is getting null Pin
ash0410-Jul-08 22:55
ash0410-Jul-08 22:55 
GeneralRe: HttpContext.Current.Session is getting null Pin
Sandeep Akhare11-Jul-08 0:02
Sandeep Akhare11-Jul-08 0:02 
GeneralRe: HttpContext.Current.Session is getting null Pin
ash0411-Jul-08 1:03
ash0411-Jul-08 1:03 
GeneralRe: HttpContext.Current.Session is getting null Pin
Sandeep Akhare11-Jul-08 1:19
Sandeep Akhare11-Jul-08 1:19 
QuestionJavascript error Pin
Agweet10-Jul-08 21:58
Agweet10-Jul-08 21:58 
AnswerRe: Javascript error Pin
ash0410-Jul-08 22:44
ash0410-Jul-08 22:44 
GeneralRe: Javascript error Pin
Agweet10-Jul-08 22:49
Agweet10-Jul-08 22:49 

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.