Re: Want to avoid session variable to reduce the form size
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Wed, 30 Nov 2005 12:05:36 +0200
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" <Rajesh.jain25@xxxxxxxxx> wrote in message
news:1133337758.315955.45570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Peter Kirk wrote:
>> "raj" <Rajesh.jain25@xxxxxxxxx> skrev i en meddelelse
>> news:1133336533.191264.310980@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> > 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.
>
.
- References:
- Prev by Date: Re: Transparent images
- Next by Date: Re: Marshalled structure size
- Previous by thread: Re: Want to avoid session variable to reduce the form size
- Next by thread: Marshalled structure size
- Index(es):
Relevant Pages
|
Loading