Hi

Another option is to post the data you want to the next page via the html
form tag. Then by using Request["varname"] you can get to the data. Just
remember you need to cast your data to what you expect as this method
returns objects.

Regards,
Riaan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Darling, Michael
Sent: Thursday 15 February 2007 18:42
To: Delphi-Talk Discussion List
Subject: RE: ASP.NET question: How do I pass a parameter to a new page?

Cosmin Prund wrote:
>I can use Server.Transfer('FrontPage.aspx') and then, from 
>FrontPage.aspx use some trick and get my parameter from the calling 
>page. That's *strange* and unacceptable because it requires

>the CALLED page to have knowledge about every single CALLING page out
there!

It is not so strange, the called page already has knowledge of the calling
page when using Server.Transfer, your calling page just needs to be of an
expected type as all ASP.NET Web Forms are of the type System.Web.UI.Page

With ASP.NET you have a few options available to pass data between web pages
# Via a query string as in Response.Redirct this is the simplest but the
downside is the data is visible # Using custom properties via the
Server.Transfer method - can suit a well modelled system # Using the Session
or Application state - this is perhaps the best but can be overkill
 

Michael Darling
Solution Developer
ROOM Solutions Ltd
mailto:[EMAIL PROTECTED]
 
--------------------------------------------------------
Room Solutions Limited is a leading supplier of solutions and services to
non-life commercial insurance markets. Room Solutions Limited is registered
in England and Wales with company number 2503575. Its registered office is
at 100 New Bridge Street, London EC4V 6YA, United Kingdom. 

CONFIDENTIALITY NOTICE/DISCLAIMER
This email and any attachments are confidential, protected by
copyright/intellectual property rights and may be legally privileged. The
information transmitted is intended only for the person or entity to which
it is addressed. If you are not the intended recipient, dissemination or
copying of this email is prohibited.
If you have received this in error, please notify us by forwarding this
email to the following address: [EMAIL PROTECTED] , and then delete the
email completely from your system.
This email and any attachments have been scanned for computer viruses by a
market leading anti-virus system. However, it is the responsibility of the
recipient to conduct its own security measures. No responsibility is
accepted by ROOM Solutions Limited for loss or damage arising from the
receipt or use of this email and any attachments.
No responsibility is accepted by ROOM Solutions Limited for personal emails.
ROOM Solutions Ltd, http://www.roomsolutions.net
--------------------------------------------------------

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to