472,362 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,362 software developers and data experts.

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 1242
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert | last post by:
This is a repost from the other dotnet.csharp forum: I'm including a simple datagrid control on my web form. I have created a Dataview (reportListView) onto a data table to populate it. At its...
0
by: TLi | last post by:
Hi! No answers occurred to my posting in yesterday, and this issue is critical. Any help appreciated << REPOST > I've surfed throughout the web and have not been able to find a way to add...
9
by: Leigh Kendall | last post by:
I can't find any issue in the MS KB, but I'm experiencing the following problem which seems to be specific to IE5, and NOT any other version of IE 5.5+ or NN 6+. Issue: I'm using an asp.net...
0
by: brian | last post by:
I have a snipet of code written to search a directory. With help from the group I figured out how to place all the files from a direcotory in a single column table hyperlinked to the file. The...
2
by: ashoo | last post by:
How do I trigger the click event of a hyperlink at run time? Thanks
0
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side...
0
by: Amil Hanish | last post by:
Earlier I had inquired as to why a normal <a hreftag didn't work when using the VS hosted site using a random local port. The more I think about it, this seems very wrong. Using the random port...
3
by: Ian Semmel | last post by:
Is there a way to get the Page_Load event to fire if the user clicks the Back button on the browser rather than clicking a hyperlink ?
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.