navigate url

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please
I have dropdownlist on my web form. I would like to get web page from url adress automaticly, when I select one of the items in dropdownlist. I have put autopostback property of dropdownlist to true. Is there any way to get url adress using normal buttons, or like in this case, list controls instead using only hyperlink
Thank you
 
djozy,

I am not quite sure what you mean. You can have items in the dropdown
list that are urls, or rather, some value, which is keyed on a url. Once
you have that, you just have to set the location property of the document to
the url, and the page will navigate to that. You might want to consider
frames though, so that you don't lose the dropdown list when you navigate to
the new page.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

djozy said:
Please,
I have dropdownlist on my web form. I would like to get web page from url
adress automaticly, when I select one of the items in dropdownlist. I have
put autopostback property of dropdownlist to true. Is there any way to get
url adress using normal buttons, or like in this case, list controls instead
using only hyperlink?
 
Hi,

I don;t fully understand your question, if the dropdown has the target URL
all you need to do in the SelectedIndexChanged event is use
Server.Redirect( URL , true );

you don't have to use any other control.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

djozy said:
Please,
I have dropdownlist on my web form. I would like to get web page from url
adress automaticly, when I select one of the items in dropdownlist. I have
put autopostback property of dropdownlist to true. Is there any way to get
url adress using normal buttons, or like in this case, list controls instead
using only hyperlink?
 
Back
Top