View Single Post
  #3 (permalink)  
Old October 17th, 2007, 10:53 AM
mansharma_s mansharma_s is offline
Registered User
Join Date: Dec 2004
Location: Indore, MP, India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks Peter,

sorry for late reply. No I am not using session values, I am using textbox ( the input tag ). and here is the error as it appear on the screen:

Server Error in '/' Application.

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

Line 21:
Line 22:
Line 23: un = Request.Form["username"].ToString();
Line 24: ps = Request.Form["password"].ToString();
Line 25: tkn = Request.Form["ltoken"].ToString();

Source File: Authenticate.aspx.cs Line: 23

First time I get this error. I click on back button; the ASP page gets submitted autometically and the C# page loaded second time and I get no error this time.