I am getting an error:
Server Error in '/Accountsystem' 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 1: <%@ Page Language="
VB" AutoEventWireup="false" CodeFile="Default.aspx.
vb" Inherits="_Default" %>
Line 2: <%
Line 3: If (Session("userid").ToString = "") Then
Line 4: Response.Redirect("default.aspx")
Line 5: End If
Previously to store data in session, I used:
Session("userid") = rs(0)
---
Best regards,
Debashis