473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 1547

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pavel Vetesnik | last post by:
Greetings! I have some troubles with session variables. I can easily create a session, but the variable I append to global session array ( $_SESSION) lasts only until the end of current...
3
by: Geoff Winsor | last post by:
Hi, I am experiencing a problem with recalling a session variable which stores whether a person is logged in to a "members only" section of a website. This area of the site has been working...
0
by: Knowledge_Sponge | last post by:
I have an ASP page that sends a location variabe to the database and retrieves the appropriate corresponding data. I would like to add a simple password to open this page. The page is accessed by...
6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
2
by: Justin | last post by:
Right now, I am managing session state through SQLServer (sessionState mode="SQLServer"). Any time I am accessing session variable, I know there will be roundtrip (server hosting the application...
1
by: Santosh | last post by:
Dear All i am writting a code sending mail with attachement. i am writting code for sending mail in one page and code for attaching a file in the next page. aftet attaching a file i am taking...
2
by: Ned Balzer | last post by:
Hi, Apologies if this is a newbie question, I haven't found the answer in any faqs. I have an asp.net 2.0 page that sets session variables and then redirects to another page. For the page...
8
vikas251074
by: vikas251074 | last post by:
I am using ASP with Oracle 9i When I try to save data by clicking save button, it gives following error. Variable is undefined 'adModeReadWrite' where as adModeReadWrite is an keyword. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.