Passing value from one page to...

S

Steve Schroeder

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
 
G

Guest

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!
***************************
 
G

Guest

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!
***************************
 
S

Steve Schroeder

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.
 
S

Steve Schroeder

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
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top