session variable getting lost



Okay, don't bash me to hard for my design on this app, it's my first web app
and it's in production.
My basic design is using Datatables created via the designer with a business
logic class in between the datatable and ObjectDataSources.
In one page I had a Gridview with select enabled. When an row in the grid is
selected, I retrieve the SelectedValue, store the value in a Session
variable and redirect the response to another web page, which, has an
ObjectDataSource on it and a DetailsView. The ObjectDataSource on this page
retrieves the value of the Session variable set from the first page. The
problem is that the Session variable is randomly losing its value.
So, the ObjectDataSource's Business object's SelectMethod accepts a value to
select records by. How do I know that the value is getting lost?
Because no rows are returned as:
dr = dtAdapter.Rows(0)

throws an exception IndexOutOfRange.

My question is, is there some reason that my session variable evaporates
randomly?

Thanks in advance

SAL


.



Relevant Pages

  • Re: Removing rows from a DataTable is VERY slow
    ... but now I feel that I can keep my design and the ... >> my DataTables, a little better explanation of my design thoughts and ... >> So my design idea was that when reading rows from a database table I ... >> corresponding business object for each returned row, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Removing rows from a DataTable is VERY slow
    ... my DataTables, a little better explanation of my design thoughts and what ... So my design idea was that when reading rows from a database table I would ... corresponding business object for each returned row, ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Design issues when dealing with multiple DataSets
    ... I feel that having all datatables in the same dataset will be a better ... you have data relations between different tables ... > utilizes many typed DataSets, ... > our design approach in general. ...
    (microsoft.public.dotnet.general)
  • Re: How do i perform intersection in 2 datsets??
    ... It's possible to do JOINs between DataTables in a DataSet, ... but it seems to me odd to do JOINs between DataTables from ... Maybe you should expose your design so that one ... may give guidance by answer. ...
    (microsoft.public.dotnet.framework.adonet)