Click here to Skip to main content
15,913,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp.net display data in gridview Pin
Paul Conrad26-Jul-09 10:57
professionalPaul Conrad26-Jul-09 10:57 
Questionin my system mechine.config is not there in the bellow path.why ? how to create Pin
Ramesh Reddy1111126-Jul-09 3:37
Ramesh Reddy1111126-Jul-09 3:37 
AnswerRe: in my system mechine.config is not there in the bellow path.why ? how to create Pin
Manas Bhardwaj26-Jul-09 3:59
professionalManas Bhardwaj26-Jul-09 3:59 
QuestionRetaining the string entered in File Upload Control Pin
meeram39526-Jul-09 3:22
meeram39526-Jul-09 3:22 
AnswerRe: Retaining the string entered in File Upload Control Pin
Abhishek Sur26-Jul-09 10:39
professionalAbhishek Sur26-Jul-09 10:39 
GeneralRe: Retaining the string entered in File Upload Control Pin
meeram39526-Jul-09 21:23
meeram39526-Jul-09 21:23 
GeneralRe: Retaining the string entered in File Upload Control Pin
Abhishek Sur26-Jul-09 21:54
professionalAbhishek Sur26-Jul-09 21:54 
QuestionSession Variables Mysteriously Go Null Pin
PDTUM25-Jul-09 16:27
PDTUM25-Jul-09 16:27 
Hi,

Although I have writing C# applications for several years, I only recently launched my first ASP.Net website. The site is run by an internal database in the App_Date folder. The Login page defines a group of Session variables that are retrieved, as needed, from concurrent pages. The Login page works perfectly and loads the Session information to the next page> That page, for security purposes, requires that an additional Password (called Signature) is submitted before it is allowed to advance. The problem is: the next page fails to load because the Session variables needed to load the next page have been nulled, as reported by the following error page:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 456:
Line 457: //Get Session Variables

Line 458: FName = Session["FName"].ToString(); /////This line is highlighted. Changing the order of the variables always reproduces the error on the same line number of the code (458)./////

Line 459: userName = Session["Name"].ToString();
Line 460: site = Session["Site"].ToString();


Source File: \\frigga\home\users\web\b157\\QueryLogger\Alerts.aspx.cs Line: 458

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Alerts.Page_Load(Object sender, EventArgs e) in \\frigga\home\users\web\b157\hy.softdynamics\QueryLogger\Alerts.aspx.cs:458
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

Now, I am sure that the first page pass is working correctly because some of the data displayed on that page is the result of Session value queries to the database. That leaves the following question: What would cause the Session values to be nulled when passing from the second to the third page? .... and could this the result of improper >Net framework on the hosting server? Or perhaps anything else? Any help would be greatly appreciated.

Pat
AnswerRe: Session Variables Mysteriously Go Null Pin
Abhijit Jana25-Jul-09 20:45
professionalAbhijit Jana25-Jul-09 20:45 
GeneralRe: Session Variables Mysteriously Go Null Pin
PDTUM26-Jul-09 4:20
PDTUM26-Jul-09 4:20 
AnswerRe: Session Variables Mysteriously Go Null Pin
Abhishek Sur25-Jul-09 21:31
professionalAbhishek Sur25-Jul-09 21:31 
AnswerRe: Session Variables Mysteriously Go Null Pin
Manas Bhardwaj25-Jul-09 22:58
professionalManas Bhardwaj25-Jul-09 22:58 
QuestionOpen PDF from Gridview Link Pin
PDTUM25-Jul-09 10:16
PDTUM25-Jul-09 10:16 
AnswerRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 10:29
professionalAbhijit Jana25-Jul-09 10:29 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM25-Jul-09 12:03
PDTUM25-Jul-09 12:03 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 12:25
professionalAbhijit Jana25-Jul-09 12:25 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM25-Jul-09 12:43
PDTUM25-Jul-09 12:43 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 20:50
professionalAbhijit Jana25-Jul-09 20:50 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM26-Jul-09 4:13
PDTUM26-Jul-09 4:13 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana26-Jul-09 7:22
professionalAbhijit Jana26-Jul-09 7:22 
AnswerRe: Open PDF from Gridview Link Pin
PDTUM26-Jul-09 12:47
PDTUM26-Jul-09 12:47 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana26-Jul-09 13:20
professionalAbhijit Jana26-Jul-09 13:20 
Questioni facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Ramesh Reddy1111125-Jul-09 8:01
Ramesh Reddy1111125-Jul-09 8:01 
AnswerRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Abhijit Jana25-Jul-09 8:45
professionalAbhijit Jana25-Jul-09 8:45 
AnswerRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Manas Bhardwaj25-Jul-09 11:04
professionalManas Bhardwaj25-Jul-09 11:04 

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.