Re: Want to avoid session variable to reduce the form size



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.
>


.



Relevant Pages

  • RE: TS Sessions Help
    ... > It sort of sounds like the client printers are now showing up in the terminal ... > services session. ... thus printing can't be redirected through the session ... >> Sooner Country ...
    (microsoft.public.windows.terminal_services)
  • Re: November 2006 Bridge World Editorial
    ... There were many pairs from the same country in all the pair ... My point is that it looks like that BW didn't bother to analyze ... of the two Chinese pairs in the 4th session (were they crushed by other ...
    (rec.games.bridge)
  • Re: Want to avoid session variable to reduce the form size
    ... Peter Kirk wrote: ... >> according to my requirement if i have set date and country in one form ... >> filled entries in first form,but in that case the form size increase, ... I am using session,once session filled by date and country and then if ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Web Service XML and Session
    ... My advise is to not use Session state at all in your web service applications. ... It would be great to read this XML stream with CODE BEHIND in a web service setting Session variables for each of the countries to use later. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Apples customer service sucks!
    ... have a load balancer distribute requests between them. ... break foo.php on server 2 until I've updated it as well. ... BBEdit. ... balancer supports session affinity or that you're storing all ...
    (comp.sys.mac.advocacy)

Loading