User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,815 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1170 | Replies: 7 | Solved
Reply
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Navigation Menu Issue

  #1  
Oct 3rd, 2007
I have a Navigation Menu at the top of my site that when on some pages you click a link the refreshes the page it looses all images and add one extra link

ASP.NET (VB)

View it here (Click on the reset button to cause it)
http://www.taylorsnet.co.uk/MembersArea/Join.aspx


Any Ideas
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: Navigation Menu Issue

  #2  
Oct 8th, 2007
Does anybody have any ideas as this problem is starting to annoy me
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: Navigation Menu Issue

  #3  
Nov 7th, 2007
Any One?
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Navigation Menu Issue

  #4  
Nov 7th, 2007
to be honest, when I click the link and click reset, nothing happens besides a page refresh. But why not do a javascript to set all the fields blank and avoid the postbacks?

Post the code in order for me to look at it and provide a fix.
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: Navigation Menu Issue

  #5  
Nov 8th, 2007
I have stepped through the code and all rows returned have the correct image path

Also this issue happens on both IE7 & Firefox 2
This issue only occures on a link that refreshes the page but does not navigate away

Here is the code that fill the Navigation Menu from SQL
SQLTable_L1 = Gen.GetNavigation(True, Members, "TopLeft")
For Each SQLRow_L1 In SQLTable_L1.Rows
  MnuItem = New MenuItem(SQLRow_L1("Name").ToString, "", SQLRow_L1("Image").ToString, SQLRow_L1("URL").ToString, "")
  mnuTopMainLeft.Items.Add(MnuItem)
Next
And the code that postsback
lblJoinError.Visible = False
lblLogInError.Visible = False

txtJoinEMail.Text = ""
txtJoinName.Text = ""
txtJoinPassword.Text = ""
txtJoinUsername.Text = ""
txtLogInPassword.Text = ""
txtLogInUsername.Text = ""
chkLogInRemember.Checked = False
Last edited by ptaylor965 : Nov 8th, 2007 at 2:39 pm.
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Navigation Menu Issue

  #6  
Nov 8th, 2007
don't know what to tell you, but it works just fine in all of my browswers, and I test over 5 of them. However, is there some reason you cannot use validators on the page, and set the reset button to an actual reset button, or use javascript? It just seems like a waste of postbacks. If this form is runat the server, which it has gotta be if you are using those asp controls, why not use the validators and javascript? Saves much more time when submitting, and saves bandwidth and process time. Otherwise, it is on your computer, as neither of my computers with all the browsers see a problem.
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: Navigation Menu Issue

  #7  
Nov 10th, 2007
I have tried it on five computers and all had the same issue but i have found the solution

i have added a
If Not IsPostBack Then
to the masterpage
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Navigation Menu Issue

  #8  
Nov 10th, 2007
Oh, I figured you already had that.. as all pages should be inside a if not postback then do this statement. It saves badnwidth, memory, and processing time.

Glad to hear you solved it, although I never saw an issue on my end!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC