| | |
need coding for menu bar
![]() |
•
•
Join Date: May 2009
Posts: 75
Reputation:
Solved Threads: 1
hey, i created a menu bar containing three items in it. i just want the coding in vb in such a way that if i click the first one it should be directed to one form, second is directed to the other form and third in the same way................................................................................... i'm using asp.net-3.5
Last edited by mshravs; Jun 3rd, 2009 at 1:13 am.
you can use javascript....
on click of a option
redirect it using
if you need more help , please post back...i'll write an example...
hope it helps...
on click of a option
redirect it using
ASP.NET Syntax (Toggle Plain Text)
window.location="link"
if you need more help , please post back...i'll write an example...
hope it helps...
here's the code
hope it helps you....
ASP.NET Syntax (Toggle Plain Text)
<html> <head> <script type="text/javascript" language="javascript"> function display(obj,id1,id2,id3) { txt=obj.options[obj.selectedIndex].text; //alert(txt) if(txt.match(id1)) { window.location="a.html" } if(txt.match(id2)) { window.location="b.html" } if(txt.match(id3)) { window.location="c.html" } } </script> </head> <body> <select id="type" onChange="display(this,'one','two','three');" > <option value="">select</option> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> </select> </body> </html>
hope it helps you....
you can make it better by inducing a delay, incase the user decides to change his mind...
with somthing like
in the IF
statement...
with somthing like
ASP.NET Syntax (Toggle Plain Text)
setTimeout("window.location='a.html'",1500);
statement...
![]() |
Similar Threads
- Dreamweaver spry menu bar problem (Site Layout and Usability)
- problem in creating menu bar in asp.net2003 (ASP.NET)
- Dreamweaver CS3 Horizontal Spry Menu Bar problem (Site Layout and Usability)
- Obtain Handle to Office Menu Bar (C++)
- Image on the unused Menu bar area ? (C)
Other Threads in the ASP.NET Forum
- Previous Thread: Embed Videos on ASP.net page using Silverlight
- Next Thread: Reading and comparing data from 2 tables
Views: 922 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.aspx .net .net-security-trust 2.0 3.5 2008 access ajax asp asp.net asp.net-mvc authentication blog bottomasp.net box browser button c# chat checkbox class click compatible connectionstring control css database datagrid datagridview datalist deployment development dgv dialog dom dropdown edit editor email embeddingactivexcontrol feedback flash flv form form-auth-subdomain formatdecimal forms formview ftp googlemaps gridview homeedition iframe iis image impersonation javascript jquery linq-sql list login migration mono mtom nameisnotdeclared navigation object opener panelmasterpagebuttoncontrols pocketpc problem profile programmer redirect reflection refresh relationaldatabases remember-me running search select server service session sessionvariables silverlight smtp-asp.net sql sql-server suse update validation vb.net video vista visualstudio web webcam website xml





