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

How do I open a new window select from dropdownlist?

Hi,

I'm new to .net and I want to accomplish something I used to do in
javascript...When a user clicks on a selection from a dropdownlist, I want to
open a different page in a new window (while keeping the original window
open). The value of the selected option must be passed to the new page and I
don't want to pass it in a URL. My dropdownlist is a server control with an
arraylist as a datasource.

Thanks for any help!
Nov 18 '05 #1
1 1909
If you do not want to pass the value from the URL, then try to use the
session. But remember to clear the session after you retrieve the value, so
that you do not overload the server.

Since your drop down list is a server control, you could set the
autopostback property to true, then call the new windows on the
"SelectedIndexChanged" event.

hope its help

weichung

"jacobryce" wrote:
Hi,

I'm new to .net and I want to accomplish something I used to do in
javascript...When a user clicks on a selection from a dropdownlist, I want to
open a different page in a new window (while keeping the original window
open). The value of the selected option must be passed to the new page and I
don't want to pass it in a URL. My dropdownlist is a server control with an
arraylist as a datasource.

Thanks for any help!

Nov 18 '05 #2

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

Similar topics

8
by: Rob Wahmann | last post by:
I'm having trouble with the following code appending the form name and an empty value to the end of the url. Can anyone tell me what's wrong? I appreciate any tips or advice you can pass along! ...
1
by: ST | last post by:
This is my other error when I click on Immunoflourescence. I believe this is related to the other error I just posted (Input string was not in a correct format.) Please let me know if you have...
1
by: Brian Reaburn | last post by:
Hi, I'm looking for some help. I would like to know how to launch a new IE browser window when I select an item from a dropdown list. I know this is possible I've seen many examples of where...
6
by: Lionel Slade | last post by:
Hi, I've bound some drop down lists to a dataset, but if the iexplorer window is resized the contents of the lists are lost? Why is this happening? AutoPostback is set to true.
13
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in...
1
by: dan_williams | last post by:
I'm trying to create a textbox control on an asp.net web page, that after a user has typed some text into it, another pop-up window appears with a dropdownlist populated with options related to the...
1
by: wbosw | last post by:
I would like to open a new window to a url that I have set as the dropdownlist.selectedvalue on the selected index change event. The selectedvalue is the url path and it will open in the existing...
2
by: wbosw | last post by:
I would like to open a new window to a url that I have set as the dropdownlist.selectedvalue on the selected index change event. The selectedvalue is the url path and it will open in the existing...
5
by: bestrafer | last post by:
Hi. I'm experiencing the following problem with a completion/hint on 'select'. When 'select' gains focus there is a possibility to go through all options by typing in a first symbol of the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.