473,549 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1563

"raj" <Ra***********@ gmail.com> skrev i en meddelelse
news:11******** **************@ o13g2000cwo.goo glegroups.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.goo glegroups.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******** *************@g 14g2000cwa.goog legroups.com...

Peter Kirk wrote:
"raj" <Ra***********@ gmail.com> skrev i en meddelelse
news:11******** **************@ o13g2000cwo.goo glegroups.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
3930
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 function. I prepared an example that can demonstrate the problem (see code bellow): The program flow is this: (1) It starts with "session_start()" and...
3
2904
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 flawlessly for a couple of years under Windows 2000 server but now is very inconsistent following a recent upgrade to Windows server 2003. Following a...
0
1212
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 selecting a location which opens the page via a links such as: http://dir-w2k/equiplist/search/CRL.ASP?Location=BRN_101...
6
2373
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 email from (possibly) three seperate forms. the following code is the end of a routine which stashes data from the first form off to session...
13
2801
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 visit again .... null ... again .... it works ..... again ... it works ... again ..... null....... and so on and on .... it does randomly work or...
2
310
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 code to the server hosting the session). My question is if I am accessing the session variable 5 times in a function, will this cause 5...
1
2575
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 name of that file from attaching file page to email page through in session file .i am giving a facility of attaching five files to user . and i...
2
399
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 that gets redirected to, I've swapped in a simple page for testing that reads the session variables and displays their values.
8
4636
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 error may in the line 42 What should be the problem.
0
7462
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.