471,348 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Want to avoid session variable to reduce the form size

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

Nov 30 '05 #1
3 1460

"raj" <Ra***********@gmail.com> skrev i en meddelelse
news:11**********************@o13g2000cwo.googlegr oups.com...
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?
Nov 30 '05 #2
raj

Peter Kirk wrote:
"raj" <Ra***********@gmail.com> skrev i en meddelelse
news:11**********************@o13g2000cwo.googlegr oups.com...
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?


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.

Nov 30 '05 #3
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.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"raj" <Ra***********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...

Peter Kirk wrote:
"raj" <Ra***********@gmail.com> skrev i en meddelelse
news:11**********************@o13g2000cwo.googlegr oups.com...
> 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?


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.

Nov 30 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Geoff Winsor | last post: by
13 posts views Thread by Alexander Widera | last post: by
2 posts views Thread by Justin | last post: by
1 post views Thread by Santosh | last post: by
2 posts views Thread by Ned Balzer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.