V
Venkat Chellam
I have a peculiar problem. I have a simple web application which loads
some data from the oracle table and display in the datagrid in the
webpage and datagrid has page enabled which shows 10 rows at a page.I
have a search criteria to search the records based on the data range i
give
This is what i have done, in the !IsPostBack section. I am setting up
the oracle connection, creating dataset object, datadapter and i aslo
load the data from the database into dataset and move all dataset,
datadapter, and connection object to session object. Now user can do
different operations withe records, like he select a row from grid and
there is button on in column of the grid to update , so what i do ,
update the dataset object for that particular row and then when next
time page load is called, i call dataadapter.update to update the data
back to the database. so my dataproviders objects are stored in the
session object. First of all is it a good way to do this?
Second when the session ends, and if the user comes back and does some
operation, it going to fail to update because the session variables
are destroyed and it will generate an error. What should i do to solve
this problem? Or if session object is not a good place to store this
dataprovider object, where shoould i store?. My page doesn't have a
user login, i am just using the default session created by asp.net.
Please help me, its very urgent
venky
some data from the oracle table and display in the datagrid in the
webpage and datagrid has page enabled which shows 10 rows at a page.I
have a search criteria to search the records based on the data range i
give
This is what i have done, in the !IsPostBack section. I am setting up
the oracle connection, creating dataset object, datadapter and i aslo
load the data from the database into dataset and move all dataset,
datadapter, and connection object to session object. Now user can do
different operations withe records, like he select a row from grid and
there is button on in column of the grid to update , so what i do ,
update the dataset object for that particular row and then when next
time page load is called, i call dataadapter.update to update the data
back to the database. so my dataproviders objects are stored in the
session object. First of all is it a good way to do this?
Second when the session ends, and if the user comes back and does some
operation, it going to fail to update because the session variables
are destroyed and it will generate an error. What should i do to solve
this problem? Or if session object is not a good place to store this
dataprovider object, where shoould i store?. My page doesn't have a
user login, i am just using the default session created by asp.net.
Please help me, its very urgent
venky