473,406 Members | 2,467 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,406 software developers and data experts.

Passing value from one page to...

How might I pass the selected value on a list box on one Webform to another?
Or reference it in some way...?

I'll keep digging here, if I figure it out I'll post the answer, thanks!

Steve
Nov 19 '05 #1
5 1000
there are several ways

1) Query String
2) Session
3) HttpContext

Nov 19 '05 #2
If you mean from window to window, you can do it with JavaScript, as long as
you know the second window's id. If the window passing either a) spawned the
second window or b) is the window's parent (ie, it was spawned by the window
you wish to contact), it is a rather easy task. You will either be using a
named child or parent to get at the other window.

Hope this helps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Steve Schroeder" wrote:
How might I pass the selected value on a list box on one Webform to another?
Or reference it in some way...?

I'll keep digging here, if I figure it out I'll post the answer, thanks!

Steve

Nov 19 '05 #3
None of these suggestions are wise if we are talking two browser windows, as
you are adding more overhead than necessary.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"sr**********@gmail.com" wrote:
there are several ways

1) Query String
2) Session
3) HttpContext

Nov 19 '05 #4
Well I'm using an ASP Linkbutton to provide a means to open a page from the
first. I want to be able to reference the DataValueField from a listbox on
the first page and use it in the second page.

Could someone provide me an example? Appreciate it, thanks.

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:BC**********************************@microsof t.com...
If you mean from window to window, you can do it with JavaScript, as long as you know the second window's id. If the window passing either a) spawned the second window or b) is the window's parent (ie, it was spawned by the window you wish to contact), it is a rather easy task. You will either be using a
named child or parent to get at the other window.

Hope this helps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Steve Schroeder" wrote:
How might I pass the selected value on a list box on one Webform to another? Or reference it in some way...?

I'll keep digging here, if I figure it out I'll post the answer, thanks!

Steve

Nov 19 '05 #5
As someone suggested, I'll just use QueryString. I can set the NaviagteURL
property on the OnSelectedIndexChanged event of the listbox so that the
Linkbutton opens the new page along with my argument.

hyplSurvey.NavigateUrl = "NewSurvey.aspx?" & lstNames.SelectedItem.Value

"Steve Schroeder" <ss********@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How might I pass the selected value on a list box on one Webform to another? Or reference it in some way...?

I'll keep digging here, if I figure it out I'll post the answer, thanks!

Steve

Nov 19 '05 #6

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

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
4
by: bateman | last post by:
Hi, I have a rather puzzling problem, have asked the ASP experts at work with no joy and its driving me mad! I'll explain the steps in more detail below but the general problem is I am manually...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
1
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL:...
0
by: Rico Singleton | last post by:
I currently have an asp page that contains a simple form and a few hidden fields. One of those hidden fields retrieves a value passed in when a link is clicked that passes a value (i.e...
5
by: Steve | last post by:
Hi, I currently have a problem passing a variable value from one page to another. Once a form submit button is pressed java pops up a window and displays some information. The problem being is...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
1
by: gajahkursi | last post by:
<?php // Connect database include("conf.php"); $child= $_POST; // Get all records in all columns from table and put it in $result. $result=mysql_query("SELECT * FROM parent WHERE child=...
5
by: aelred | last post by:
I have a web page where a member can open up a chat window (child window) with another member. - From there the member can also navigate to other web pages. - From other pages in the site, they...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
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,...
0
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...

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.