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

Retrieve value from previous page

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

Nov 22 '06 #1
3 2763
"st****@gmail.com" wrote:
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
Nov 22 '06 #2
<st****@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
>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...?
Nov 22 '06 #3
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.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
<st****@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
>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

Nov 22 '06 #4

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

Similar topics

1
by: zoltix | last post by:
Hi, How to retrieve a value in in an aspx page? Normally it is easy, drag and drops the textarea in aspx page and it is work. But in this case, I generate the html code manually () and put as...
0
by: Iwan Petrow | last post by:
Hi, How could I retrieve the previous web page from the current page? I can put it in a Session variable for exmaple. Are there another ways? Thanks.
4
by: Claudia Fong | last post by:
Hi, I have a form where I need to display the data of a department that stores in a access db. When I first load the form it will call a function name loaddata which will get the first...
1
by: nic | last post by:
Hi, I have an aspx page where I dynamically generate a number of input controls. Upon submitting the form I need to re- create the controls in order to retrieve their values. I understand this,...
2
by: epigram | last post by:
I'm responding to a button click event on an asp.net web form. I then need to retrieve the value from a TextBox control and I want to compare it against the control's previous value to see if it...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
4
by: LetMeDoIt | last post by:
Greetings, I'm using ASP to retrieve from MSSQL and I then populate a table. After several months of successfull retrieves, this same code now bombs out. It turns out that if I clear out from...
4
by: kang jia | last post by:
hi i am doing mailinglist currently. the code in my first page is like this : : <html> <head> <link rel="stylesheet" type="text/css" href="gallery.css" /> <script language="JavaScript"> ...
1
by: divya | last post by:
Hello, I used the below code to move selected items between two listboxes Left and Right:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPopup.aspx.cs" Inherits="TestPopup" %> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...

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.