CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 7/5/2004 6:02:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 19 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
JesusJunior
Asp.Net User
Making a menu navigator dynamicly7/5/2004 6:02:28 PM

0/0

I'm building this menu component and by clicking a LinkButton it opens sub links (in a panel) to this main link. It works when i put the links and the panels myself but i was wondering how can i make it work by recieving the main links a sub links from a database. I mean that I would have to make an array or something of links and images(for the arrows and bullets near the links) and I would have to make events for each linkbutton.

I don't have a clue how i can make all this dynamicly from a database. I have no problems recieving the data from the tables though i don't know how to make the links and images for each link and each sub link and how to make event handlers for each.

Please guide me.

The code is currently like this:

sub page_load(sender As Object, e As EventArgs)
arr1.imageurl = server.mappath("closed.gif")
arr2.imageurl = server.mappath("closed.gif")
sub3.imageurl = server.mappath("closed.gif")
sub4.imageurl = server.mappath("closed.gif")
dim i as integer

LoopImages(Me)

End Sub

'Two events that happen when clicking on one of the two main links
'They open each, another panel underneath it which contains its sub links.

Sub LinkButton1_Click(sender As Object, e As EventArgs)
If panel1.visible Then
panel1.visible = False
arr1.imageurl = server.mappath("closed.gif")
Else
panel1.visible = true
arr1.imageurl = server.mappath("opened.gif")
End If
End Sub

Sub LinkButton2_Click(sender As Object, e As EventArgs)
If panel2.visible Then
panel2.visible = False
arr2.imageurl = server.mappath("closed.gif")
Else
panel2.visible = true
arr2.imageurl = server.mappath("opened.gif")
End If
End Sub

Private Sub LoopImages(ByVal parent As Control)
Dim c As Control
For Each c In parent.Controls
If c.GetType() Is GetType(Image) Then
If instr(c.id,"sub") > 0 Then
ctype(c, image).imageurl = server.mappath("sub.gif")
End If
End If
If c.HasControls Then
LoopImages(c)
End If
Next
End Sub


Thanks for the help...
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: In One Hour A Day Authors: Laura Lemay, Rafe Colburn, Pages: 816, Published: 2006
Special Edition Using Microsoft Office FrontPage 2003: Special Edition Authors: Jim Cheshire, Paul Colligan, Pages: 1080, Published: 2003
PHP Hacks: Tips and Tools for Creating Dynamic Web Sites Authors: Jack D. Herrington, Pages: 443, Published: 2005
CSS Cookbook: Covers CSS 2.1 Authors: Christopher Schmitt, Pages: 252, Published: 2004
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008
Essential JavaScript for Web Professionals Authors: Dan Barrett, Daniel J. Barrett, Dan Livingston, Micah Brown, Pages: 198, Published: 1999
Beginning JavaScript Authors: Paul Wilton, Pages: 1010, Published: 2004
ColdFusion MX with Dreamweaver MX Authors: David Golden, Pages: 672, Published: 2002
JavaScript and DHTML Cookbook: Solutions and Example for Web Programmers Authors: Danny Goodman, Pages: 520, Published: 2003
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005

Web:
Dynamic Drive- DHTML & JavaScript Menu And Navigation scripts Pop-it allows you to associate a dynamic menu with regular links on your page. ... This is a smashing DHTML navigation bar that resembles the OutLook bar of ...
Building a Dynamic Menu with CSS and JavaScript, part 1 Jun 22, 2005 ... In order to establish a starting point for building the dynamic menu, let’s first create a conventional static navigation system, ...
JavaScript Menu, DHTML Cross Browser Web Site Popup Navigation ... JavaScript Menu, DHTML Menu, Popup Menu, Tree Menu. If it's web site navigation menus you want - you name it, we'll do it. Fully Cross Browser Popup Web ...
Dynamic Flash Menu - Navigation - FlashValue.net If you have a headache of traditional and static menus, and you want to something dynamically and attractive, the flash menu is a perfect choice for you . ...
how to build a dynamic menu navigation? | ExpressionEngine ... How would one build a menu tree dynamically? ... The site will have a menu navigation very similar to EE home site. ...
Dynamic Menu Highlighting « WordPress Codex This article will explain how to go about making a navigation menu that dynamically highlights the currently displayed page, however there are plugins ...
DHTML Lab: Dynamic HTML Tutorials, DHTML Scripts, Programming ... With Dynamic HTML we no longer have to rely on single image swapping for menu rollover effects. Combining Cascading Style Sheet positioning and clipping ...
Creating a dynamic select menu | The WordPress Guru | Tips ... Apr 17, 2008 ... The 2nd select menu will be dynamically populated based on... ... The Wordpress Guru » Tips & Tricks on Making a Killer CMS with WordPress ...
Building a Dynamic WordPress Nav Menu - Beast-Blog.com Feb 8, 2007 ... This article will teach you how to produce a dynamic WordPress “Pages” navigation menu that looks good and behaves as a main navigation menu ...
Creating a Dynamic Navigation Menu: etc: quick links to good stuff Apr 2, 2006 ... CssDev by Andy Peatling - Creating a Dynamic Navigation Menu -a great menu, nicely explained, made with css and some scripting help. ...

Videos:
Madame Sarkozy Carla Bruni Spot Lancia Musa, Ecollection, http://es.video.yahoo.com/watch/2393413/7155876 Madame Sarkozy the 3 Series — each and every one of them a roaring success. It looks like the 2009 BM...
Top Navigator(Dynamic Text) design&motion custom is easy. dynamic text. 2 Depth Limit. If overflow the width of 2depth, automatical reposition. by flash action script 3.0. con...
Create Navigation Bar using PHP, CSS and Dreamweaver Create Dynamic Navigation bar using PHP, CSS and Dreamweaver. Easy to manage dorp-down menu and navigation bar.
Nokia N95 con nuevo firmware (20.0.0.015) Pequeño video para mostrar algunos cambios con el nuevo firmware del N95. Review Parte 1: http://www.youtube.com/watch?v=iP2w-ta99dk Review Parte 2...
SEO Shopping Cart Visit www_shoppingcartelite_com The leader in eCommerce shopping carts offers SEO technology, features below • Static URLs • Unique Page Titles •...
Multi Depth Menu Controller using flash by irismin It's a web site navigator using flash. when it recieved XML, dynamically draw menus. Have no depth limit. And design & motion is perfectly separati...
LG KF600 A new experience in design and usability Featuring an innovative design with a sleek exterior, semi-reflective dual screen and black crystal finish...




Search This Site:










caching with postback?

caching multiple objects with one file dependency

browse and upload images only

touch screen - selected textbox

message box

text area issue

asking for username/password in display info form

map to current users temp folder

add a yes-no comfirmation message box?

firefox performance issues

retaining values throughout the namespace , form?

selecteddate property used with selecteddatescollection in calender

default.aspx??

how can we specify a file location that can be written to from iis?

problem creating wizard steps at run time

sub classes, inlcude files

problem with set focus on textbox

playing audio files in asp.net web forms(.net 1.x)

long running procedures called from web-pages

how to show a picture?

using common functions

to print a text file which is in hosting server to the client machine directly

passing secret objects between different requests

how to imitate php imagemap with asp.net

new web form

calendar drop down

dynamic regex performance...

how can i embed a page in to my web page

pass through a list (attribute) from page1 to page2

need a frame work to build asp web site

  Privacy | Contact Us
All Times Are GMT