469,889 Members | 1,520 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

Repost:hyperlink

Guys!
I am trying to use a dropdownlist click event in my header
page to link to my main page in a frameset type of form.

I try to link to my main page with a hyperlink control.It
works fine. But I would like to use the click event of my
dropdownlist to do the samething. so I thought if could
trigger the clik event of the hyperlink within my
dropdownlist click event it could work. But I am not sure
how to set it up.

Note: redirect to the frameset form does not work.

Thanks for helping!
Nov 17 '05 #1
1 1171
I presume you are talking about doing this on the client, since there is no
server-side click event for a hyperlink control. (It renders HTML that
handles this on the client.) Since you have frames, you should consider that
each frame holds a separate HTML page (by the time it gets to the client) so
it's a lot harder to navigate the frameset from the server than it would be
from the client. When it gets to the client, the object model is aware of
what it contains - on the server, it isn't.

So, what you want to do is to handle this using JavaScript on the client.
Rather than using a DropDownList control, use a <select> control (HtmlSelect
in the class library) and use an onchange client side event handler to
navigate to a new page in your other frame.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"ashoo" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Guys!
I am trying to use a dropdownlist click event in my header
page to link to my main page in a frameset type of form.

I try to link to my main page with a hyperlink control.It
works fine. But I would like to use the click event of my
dropdownlist to do the samething. so I thought if could
trigger the clik event of the hyperlink within my
dropdownlist click event it could work. But I am not sure
how to set it up.

Note: redirect to the frameset form does not work.

Thanks for helping!

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by TLi | last post: by
9 posts views Thread by Leigh Kendall | last post: by
reply views Thread by brian | last post: by
2 posts views Thread by ashoo | last post: by
3 posts views Thread by Ian Semmel | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.