473,289 Members | 1,808 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,289 software developers and data experts.

safest way to pass parameters between pages

Hi,

I have a few aspx (.net2) form.

The first form allows the user to enter into text box, and select values
from drop downs

The second form needs to use these values to process some data.

I am currently using the url to pass the values such as
'pagename.aspx?parm1=value&param2=value, and the second form does a
request.headers("parm1")

However this exposes the values in the browser, and I don't want this.

Is there a way to do this where its hidden from the user ?

Thanks

Oct 8 '07 #1
3 3158
"Aussie Rules" <Au*********@nospam.nospamwrote in message
news:u8**************@TK2MSFTNGP03.phx.gbl...
I have a few aspx (.net2) form.

The first form allows the user to enter into text box, and select values
from drop downs

The second form needs to use these values to process some data.

I am currently using the url to pass the values such as
'pagename.aspx?parm1=value&param2=value, and the second form does a
request.headers("parm1")

However this exposes the values in the browser, and I don't want this.

Is there a way to do this where its hidden from the user ?
Generally speaking, in ASP.NET there is no need to use two forms for this -
that is what a postback is for...

When the user clicks the <asp:Button>, the form will postback and the values
in the textboxes will be available for you to do your processing.
Afterwards, you can redirect to another page if you like, but there's no
need to...

http://www.google.co.uk/search?sourc...ET%22+postback
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 9 '07 #2
Where did you get this "request.headers("parm1") stuff?
Your stuff is on the QueryString. You would get it with
Request.QueryString("parm1") or
Request.Params("parm1")

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Aussie Rules" wrote:
Hi,

I have a few aspx (.net2) form.

The first form allows the user to enter into text box, and select values
from drop downs

The second form needs to use these values to process some data.

I am currently using the url to pass the values such as
'pagename.aspx?parm1=value¶m2=value, and the second form does a
request.headers("parm1")

However this exposes the values in the browser, and I don't want this.

Is there a way to do this where its hidden from the user ?

Thanks

Oct 9 '07 #3

Hi Aussie,

Generally, for share data between web pages, you can use querystring,
session, database ........ However, for ASP.NET 2.0 page, it also provide
some particular features, such as the cross page postback(if you are using
submit/postback to redirect to other page). Or you can use Server.Transfer
to redirect page and use HttpContext.Items collection to store temp data.
Here is a msdn reference mentioend some of them:

#How to: Pass Values Between ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/lib...fw(VS.80).aspx

BTW, do you think the suggestion that use single page with postback from
other members also possible for your case?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Aussie Rules" <Au*********@nospam.nospam>
Subject: safest way to pass parameters between pages
Date: Tue, 9 Oct 2007 00:22:22 +0100
>Hi,

I have a few aspx (.net2) form.

The first form allows the user to enter into text box, and select values
from drop downs

The second form needs to use these values to process some data.

I am currently using the url to pass the values such as
'pagename.aspx?parm1=value&param2=value, and the second form does a
request.headers("parm1")

However this exposes the values in the browser, and I don't want this.

Is there a way to do this where its hidden from the user ?

Thanks

Oct 9 '07 #4

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

Similar topics

1
by: Ravi & Paami | last post by:
After I tried upgrading my php version from 3 to 4, all my code which passes parameters between web pages have stopped working. Not sure what the problem is. Have tried defining the parameters in...
7
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...
0
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems...
7
by: Spongebob | last post by:
Hello, I have a question about how to pass information between pages in ASP.NET. There are 2 pages : page1.aspx, page2.aspx. On page1 user clicks the record. Then, I need to show the detailed...
9
by: Alan Silver | last post by:
Hello, I'm a bit surprised at the amount of boilerplate code required to do standard data access in .NET and was looking for a way to improve matters. In Classic ASP, I used to have a common...
2
by: rinat | last post by:
Hi, I have an aspx page who needs to open a asp page and pass some text parameters to it, I would have used the request.querystring but I'm afraid the data is too long. is there an option to...
0
by: H5N1 | last post by:
Hi there I know that a problem of different datetime strings formatting between asp.net and ms sql has been covered here widely, but what I couldn't find is the 100% safe way of getting datetime...
2
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 ...
2
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I'm creating a XBAP application and want it take some input from webpage dynamically? what is the best way? how to do it? Best Regards Steven -- ======================= Steven Tang SYWWUYU)
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...

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.