Want to avoid session variable to reduce the form size

  • Thread starter Thread starter raj
  • Start date Start date
R

raj

hi,
I have 4 forms all having 40 fields in datagrid,I have two textBoxes
for date and country,
according to my requirement if i have set date and country in one form
then if i go to another form then data shld be loaded according the
filled entries in first form,but in that case the form size increase,
so i want any other alternatve to maintain the date and country name
without increasing the form size.

plz dont suggest me for Querystring bcz i can access this form any time
and from any form(not containing date and country textBox).


Thanks In Advance
 
raj said:
hi,
I have 4 forms all having 40 fields in datagrid,I have two textBoxes
for date and country,
according to my requirement if i have set date and country in one form
then if i go to another form then data shld be loaded according the
filled entries in first form,but in that case the form size increase,
so i want any other alternatve to maintain the date and country name
without increasing the form size.

plz dont suggest me for Querystring bcz i can access this form any time
and from any form(not containing date and country textBox).

Use the session?
 
Peter said:
Use the session?

I am using session ,once session filled by date and country and then if
i go to anotherpage using this session then the page size become
increase.
 
Session data is held on the server. When you load your page just get the
data from the session

I mean something like this.

Page_Load(..)
{
txtDate.Text = Session["date"] as string;
txtCountry.Text = Session["country"] as string;
}

When you transfer to the next page you can issue submit on the initial one
( the one that contains date & country ) then in the server side - put the
values to the session cache.
When new form will load it will check the values from session cache.
 
Back
Top