473,830 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pass simple parameters to a page

I know I can use the querystring mechanism to pass simple parameters to a
Page using Response.Redire ct, but Im having problems getting this to work
using Server.Transfer or Server.Execute - is this by design ?

What is a simple alternative for passing optional parameters to a Page using
Server.Transfer or Server.Execute?

I don't want to store a session variable and check that in the called page -
too flaky.
Nov 18 '05 #1
3 1891
Last I knew you cant pass a querystring through on server.transfer/execute
"JezB" <je***********@ blueyonder.co.u k> wrote in message
news:eu******** ******@TK2MSFTN GP12.phx.gbl...
I know I can use the querystring mechanism to pass simple parameters to a
Page using Response.Redire ct, but Im having problems getting this to work
using Server.Transfer or Server.Execute - is this by design ?

What is a simple alternative for passing optional parameters to a Page using Server.Transfer or Server.Execute?

I don't want to store a session variable and check that in the called page - too flaky.

Nov 18 '05 #2
I'm using Request.Params["param"] to interrogate the query string. Now, I
read somewhere that a Server.Transfer inherits the Request object from it's
calling form, rather than getting it's own, so that might be why I'm having
a problem.

"MattC" <m@m.com> wrote in message
news:eT******** ******@TK2MSFTN GP11.phx.gbl...
Last I knew you cant pass a querystring through on server.transfer/execute
"JezB" <je***********@ blueyonder.co.u k> wrote in message
news:eu******** ******@TK2MSFTN GP12.phx.gbl...
I know I can use the querystring mechanism to pass simple parameters to a Page using Response.Redire ct, but Im having problems getting this to work using Server.Transfer or Server.Execute - is this by design ?

What is a simple alternative for passing optional parameters to a Page

using
Server.Transfer or Server.Execute?

I don't want to store a session variable and check that in the called

page -
too flaky.


Nov 18 '05 #3
Assuming you make a Server.Transfer from the Page1 to Page2
you can access Page1 from Page2 like this:
Page1 page1 = (Page1)Context. Handler;
in Page2. And so you can access the fields from the Page1:
page1.anypublic field etc
much better then the query string I think.

--
bl********@as.r o
www.bloomfield.as.ro

JezB wrote:
I'm using Request.Params["param"] to interrogate the query string. Now, I
read somewhere that a Server.Transfer inherits the Request object from it's
calling form, rather than getting it's own, so that might be why I'm having
a problem.

"MattC" <m@m.com> wrote in message
news:eT******** ******@TK2MSFTN GP11.phx.gbl...
Last I knew you cant pass a querystring through on server.transfer/execute
"JezB" <je***********@ blueyonder.co.u k> wrote in message
news:eu****** ********@TK2MSF TNGP12.phx.gbl. ..
I know I can use the querystring mechanism to pass simple parameters to
a
Page using Response.Redire ct, but Im having problems getting this to
work
using Server.Transfer or Server.Execute - is this by design ?

What is a simple alternative for passing optional parameters to a Page


using
Server.Trans fer or Server.Execute?

I don't want to store a session variable and check that in the called


page -
too flaky.



Nov 18 '05 #4

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

Similar topics

3
2455
by: Doru Roman | last post by:
Hi, I have a page that calls a multiple frames page (ASP). I need to send parameters from the first to the multi frames page. If sending to a simple page, it works. If sending to multiple frames page, it does not. -- Thank you,
1
4015
by: Jon Maz | last post by:
Hi, I am trying to pass an array from an asp page (JScript) to a dotnet web service using the SOAP Toolkit 3.0. This is still at the Hello World stage, as you can see: WEB SERVICE METHOD public string AcceptArray(object parameters)
3
32154
by: DCB | last post by:
Hello. I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a non-frames created page... Simply, it is: if (parent != self)
23
12300
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was saved on another computer that I can't get to right now), and I can't remember what search parameters I used to find it when I googled the topic. Can anyone point me the right direction? I'd like to use a method that would be accessible to the...
7
21645
by: Zlatko Matiæ | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the server ? Is it possible to use parameters in pass-through queries ? An additional question: Is it possible to connect to a database on MySQL or PostgreSQL using ADO ? Is it possible to execute pass-through queries with parameters, using ADO...
5
2885
by: Apollo0130 | last post by:
hi, i want to pass a parameter (a string) between two forms. i have a Webform A (default.aspx) with a button and a Webform B (detail.aspx). i want to click the button and open the webform B with the parameter submitted from the webform A. how can i do that? greetz Apollo0130
19
248308
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect this data is essential to any developer. This article is a basic tutorial on how to user HTML Forms, the most common method of data collection. Assumptions - Basic HTML knowledge. - Basic PHP knowledge. HTML Forms A common and simple way of...
2
3219
by: gumby | last post by:
I would like to call this stored procedure, but I am unable to pass parameters to the @Start and @End. Is thier a way to pass parameters to a pass through query from MS Access? SELECT COUNT(dbo.tblPersActionHistory.PersActionID) AS , .fn_FindStartPayPeriod(dbo.tblPersActionHistory.PersActionID, 2) AS FROM dbo.tblPersActionLog INNER JOIN
12
11121
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...
0
9791
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
10771
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...
1
10525
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,...
0
10202
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9313
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7745
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
6950
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5617
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...
3
3076
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.