Retrieve value from previous page

S

staeri

I have a page containing a dropdownlist. After clicking a hyperlink
another page is opened.

How can I retrieve the selected text in the dropdownlist from the new
page without using a session or querystring?

Regards,

// SE
 
E

Eliyahu Goldin

If you are in ASP.NET 2.0 and are using a control capable of posting back to
another page (Button, ImageButton, LinkButton), you can postback to another
page and access the previous page via the PreviousPage property. Read the
Cross-Page Posting section in MSDN for more info.
 
G

Guest

I have a page containing a dropdownlist. After clicking a hyperlink
another page is opened.

How can I retrieve the selected text in the dropdownlist from the new
page without using a session or querystring?

You might be able to do using javascript, and pass the value back to the
code behind somehow.

Javascript would be something like:
parent.formname.controlname.value
 
M

Mark Rae

I have a page containing a dropdownlist. After clicking a hyperlink
another page is opened.

How can I retrieve the selected text in the dropdownlist from the new
page without using a session or querystring?

Other than following Eliyahu's advice, you can't really... Once a page is
gone, it's gone - that's precisely why Session exists. What's the problem to
use Session, AAMOI...?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,180
Latest member
CryptoTax Software
Top