I am simply trying to pass a variable to another page. I know my second
page can do Request("str") to retrieve that variable, but how do I pass it
in the first place?
I tried Server.Execute( "P2.asp?str="he llo") but I get errors.
I tried Response.Redire ct("P2.asp?str= "hello") but the variable is empty
I tried setting variables like you would in VB:
str="hello"
Server.Execute( "P2.asp")
and hoping the second page would pick it up, but I don't know how to make
that str variable global.
I am not using forms, I am not using cookies, I was told not to use Session
or Application variables, it's a variable being passed just the first time a
page is accessed, after that links will send the variables.
How do you Set str="something" and then have the 2nd page pick it up?????
It shouldn't be that difficult! 5 2334
eagletender wrote on 10 jul 2004 in
microsoft.publi c.inetserver.as p.general: I know my second page can do Request("str")
myStrP2 = Request.Queryst ring("str")
I tried Response.Redire ct("P2.asp?str= "hello") but the variable is empty
[if we are using vbscript :]
Response.Redire ct "P2.asp?str=hel lo"
or
myStrP1 = "hello"
Response.Redire ct "P2.asp?str =" & myStrP1
=============== =
I would prefer a session variable to get this pure serverside content from
one page to another.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Response.redire ct "?err=something _else"
<%
something = request.queryst ring("err")
response.write something
%>
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"eagletende r" <ea************ *@yahoo.com> wrote in message
news:10******** *****@corp.supe rnews.com... I am simply trying to pass a variable to another page. I know my second page can do Request("str") to retrieve that variable, but how do I pass it in the first place?
I tried Server.Execute( "P2.asp?str="he llo") but I get errors. I tried Response.Redire ct("P2.asp?str= "hello") but the variable is empty
I tried setting variables like you would in VB: str="hello" Server.Execute( "P2.asp") and hoping the second page would pick it up, but I don't know how to make that str variable global.
I am not using forms, I am not using cookies, I was told not to use
Session or Application variables, it's a variable being passed just the first time
a page is accessed, after that links will send the variables.
How do you Set str="something" and then have the 2nd page pick it up????? It shouldn't be that difficult!
On Sat, 10 Jul 2004 11:02:34 -0600, "eagletende r"
<ea************ *@yahoo.com> wrote: I am simply trying to pass a variable to another page. I know my second page can do Request("str") to retrieve that variable, but how do I pass it in the first place?
I tried Server.Execute( "P2.asp?str="he llo") but I get errors.
Yep. See: http://www.aspfaq.com/show.asp?id=2030
I tried Response.Redire ct("P2.asp?str= "hello") but the variable is empty
Yep.
I tried setting variables like you would in VB: str="hello" Server.Execute( "P2.asp") and hoping the second page would pick it up, but I don't know how to make that str variable global.
Can't.
I am not using forms, I am not using cookies, I was told not to use Session or Application variables, it's a variable being passed just the first time a page is accessed, after that links will send the variables.
Forms, sessions and cookies would all do what you wish.
How do you Set str="something" and then have the 2nd page pick it up????? It shouldn't be that difficult!
Request.Queryst ring: http://www.devguru.com/Technologies/...erystring.html
Jeff
Have you tried using a session variable?
Jeff Cochran wrote: On Sat, 10 Jul 2004 11:02:34 -0600, "eagletende r" <ea************ *@yahoo.com> wrote:
I am simply trying to pass a variable to another page. I know my second page can do Request("str") to retrieve that variable, but how do I pass it in the first place?
I tried Server.Execute( "P2.asp?str="he llo") but I get errors.
Yep. See:
http://www.aspfaq.com/show.asp?id=2030
I tried Response.Redire ct("P2.asp?str= "hello") but the variable is empty
Yep.
I tried setting variables like you would in VB: str="hello" Server.Execute( "P2.asp") and hoping the second page would pick it up, but I don't know how to make that str variable global.
Can't.
I am not using forms, I am not using cookies, I was told not to use Session or Application variables, it's a variable being passed just the first time a page is accessed, after that links will send the variables.
Forms, sessions and cookies would all do what you wish.
How do you Set str="something" and then have the 2nd page pick it up????? It shouldn't be that difficult!
Request.Queryst ring:
http://www.devguru.com/Technologies/...erystring.html
Jeff
Buddy you are using quoted identifiers in the wrong way
Try this
1.
Server.Execute( "P2.asp?str='he llo'")
Response.Redire ct("P2.asp?str= 'hello'")
2.
Server.Execute( "P2.asp?str=hel lo&Variable2=wh atever you want goes here")
Response.Redire ct("P2.asp?str= The string here can contain spaces")
And to access any of the vairables just do this
x = Request.QuerySt ring("str")
Response.Write( x) ' do anything withthe variable This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Doug Jordan |
last post by:
I am fairly new to Python. This should be an easy answer but I cannot get
this to work. The code is listed below. I know how to do this in C,
Fortran, and VB but it doesn't seem to work the same way here.
I would appreciate any help.
#try this to pass a list to a function and have the function return
#a variable
#this works
list=
def fctn(c):
|
by: Phil Certain |
last post by:
Hi,
I'm trying to do something very simple...or at least it should be. I
have created a host page (gen.aspx) and a very simple user control
(us.ascx). The corresponding code-behind files are gen.aspx.vb and
uc.ascx.vb. With simple html or self contained vb in the user control,
everything is fine and dandy. So the next stage is to pass back a
simple variable from the user control to the host page. I used VS.NEt
to create the files.
|
by: Phillip Vong |
last post by:
I'm a newbie using VS2005 to learn and test. I'm testing against the
Northwind DB.
I created a simple variable called "myVariable" and I assigned it the
character "c". I want my SQL query to use this variable in the "Where"
statement where it will pull up all names with the letter "c" in it. How do
I pass this variable on the the WHERE statement? I thought all I had to do
was use the <% %> with my variable inside and that would work...
|
by: jonnyblazed |
last post by:
I've searched everywhere for this but I'm not sure exactly what to
search for.
What I am trying to do is pass a variable to a php script via the URL.
However, I don't want to use the standard "?name=value format." I want
to either pass the variable as "value website.com" or
"website.com/value" where the script is stored in some directory
"website.com/script/index.php" and the value gets stored in a variable
declared within my php script.
|
by: tshad |
last post by:
I want to access multiple arguments based on name passed.
For example I have the following asp:textboxes:
BillingAddress1
BillingAddress2
BillingCity
ShippingAddress1
ShippingAddress2
ShippingCity
| |
by: techbuddha |
last post by:
Hi new to the forum and visual basic.
I am attempting to fix a migration of excel to access. The excel sheets where simple copied as is into access. for example one table lists the academic history from elementary to phd and on to post doctoral work alll on the same row. I want to break that up to have each level of education as a seperate record and then relate that back to the person.
i can pull the data into a recordset
I can...
|
by: lisp9000 |
last post by:
I've read that C allows two ways to pass information between
functions:
o Pass by Value
o Pass by Reference
I was talking to some C programmers and they told me there is no such
thing as pass by reference in C since you are just passing an address
(or a pointer value address I guess?). So I was wondering is this
correct?
|
by: Bryan Parkoff |
last post by:
I write my large project in C++ source code. My C++ source code
contains approximate four thousand small functions. Most of them are
inline. I define variables and functions in the global scope. The global
variables and global functions are hidden to prevent from accessing by the
programmers. All global functions share global variables.
Only very few global functions are allowed to be reusability for the
programmers to use. Few...
|
by: raylopez99 |
last post by:
Keywords: scope resolution, passing classes between parent and child
forms, parameter constructor method, normal constructor, default
constructor, forward reference, sharing classes between forms.
Here is a newbie mistake that I found myself doing (as a newbie), and
that even a master programmer, the guru of this forum, Jon Skeet,
missed! (He knows this I'm sure, but just didn't think this was my
problem; LOL, I am needling him)
If...
|
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...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |