473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing options

Lee
Hi All

How can I pass options from one webpage into another webpage. When the user
clicks on the hyperlink I want them to be go to the next page but I need to
pass in a number that the next page needs to reference.

Thanks

Lee
Nov 18 '05 #1
3 1565
Either use the Querystring object or Session variables.
"Lee" <la*******@spam less.sympatico. ca> wrote in message
news:ua******** ******@TK2MSFTN GP09.phx.gbl...
Hi All

How can I pass options from one webpage into another webpage. When the user clicks on the hyperlink I want them to be go to the next page but I need to pass in a number that the next page needs to reference.

Thanks

Lee

Nov 18 '05 #2
Hi Lee,

You should be aware that using the Querystring adds the object you are
passing to the URL while using Session variables puts the object in server
memory. Using Querystring means you can send other people bookmarks/links
and your web application will retain those variables you're passing. Using
Session allows for a more readable URL and is also useful for passing around
large objects, but bookmarks/links will be broken because the Session is
stored in server memory, is linked to a particular connection and will
expire after a certain amount of time.

HTH,
Mark Jen [MSFT]
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.

"William Ryan [eMVP]" <do********@com cast.nospam.net > wrote in message
news:OM******** ******@TK2MSFTN GP11.phx.gbl...
Either use the Querystring object or Session variables.
"Lee" <la*******@spam less.sympatico. ca> wrote in message
news:ua******** ******@TK2MSFTN GP09.phx.gbl...
Hi All

How can I pass options from one webpage into another webpage. When the

user
clicks on the hyperlink I want them to be go to the next page but I need

to
pass in a number that the next page needs to reference.

Thanks

Lee


Nov 18 '05 #3
Lee
My preference is the querystring (subject to change at a later date)

I can pass it (form the url properly using ie
http://localhost/project.aspx?projectID=A321

What is the code to pull out the projectID value on the next page?

Thanks

Lee

"Mark Jen [MSFT]" <ma*****@online .microsoft.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Hi Lee,

You should be aware that using the Querystring adds the object you are
passing to the URL while using Session variables puts the object in server
memory. Using Querystring means you can send other people bookmarks/links
and your web application will retain those variables you're passing. Using
Session allows for a more readable URL and is also useful for passing around large objects, but bookmarks/links will be broken because the Session is
stored in server memory, is linked to a particular connection and will
expire after a certain amount of time.

HTH,
Mark Jen [MSFT]
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.
"William Ryan [eMVP]" <do********@com cast.nospam.net > wrote in message
news:OM******** ******@TK2MSFTN GP11.phx.gbl...
Either use the Querystring object or Session variables.
"Lee" <la*******@spam less.sympatico. ca> wrote in message
news:ua******** ******@TK2MSFTN GP09.phx.gbl...
Hi All

How can I pass options from one webpage into another webpage. When
the user
clicks on the hyperlink I want them to be go to the next page but I
need to
pass in a number that the next page needs to reference.

Thanks

Lee



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2165
by: Chris | last post by:
I'm trying to come up with a not-so-ugly manner of passing many command-line options between modules. I have a Steering.py file, which contains my main() and handles the getopts getting of several command-line options. Since having 5-6 additional parameters for every class instantiation or function call is obviously an ugly way to handle this, what would you folks recommend as a superior option? Maybe passing a dict of options to each...
2
1569
by: John Leslie | last post by:
I am porting a script from Korn Shell to python and want to pass named parameters like -JOB 123456 -DIR mydir I can get it to work passing --JOB and --DIR but not -JOB and -DIR Any ideas? Current code : try:
12
6533
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
1
4596
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing name, email, countries, cities, products, courses, etc. The others display as they should on the subsequent page,
16
82795
by: Simon | last post by:
Hi all, I think I've seen someone passing an emumeration in code before. Can anyone tell me if thats possible and why i would want to. Many thanks Kindest Regards
5
4067
by: Matthew Thompson | last post by:
I have as issue I am finding hard to research. I use a stored proecdure in SQL 2000 to provide search capability for our database of news stories and articles. Being an international magazine publisher we use foreign characters extensively. When searching for words (I am using Full Text Indexing and using the CONTAINSTABLE method) with accented characters such as Møller (Second character is Alt+0248) the form receives back Møller
2
4730
by: Mark Drummond | last post by:
Hi all. I've been using Perl for many years now, but I am a "use it and learn it as you need it" type. I having some trouble passing a list to the "search" subroutine from Net::LDAP. I am trying to pass a list of attributes to be returned by search. The basic method call is: my $searchresults = $ldap->search(OPTIONS) One of the options is "attrs =>" which the documentation describes as "A
7
1538
by: Leo Breebaart | last post by:
I have another question where I am not so much looking for a solution but rather hoping to get some feedback on *which* solutions people here consider good Pythonic ways to approach a issue. The situation is this: I am writing fairly large console scripts in Python. They have quite a few command-line options, which lead to configuration variables that are needed all over the program (e.g. the "--verbose" option alone is used by just...
1
1653
by: Harold Fellermann | last post by:
Dear list, I looked through the list but could not find any solutions for my current problem. Within my program, I am importing a module via __import__(module_name,globals(),locals()) and I want to pass comand line options to this module. I would prefer not to save them in a config module or a Config class but rather use the globals and locals dictionaries
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6169
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4159
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1622
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.