?
Solved

ASP.NET: Forms Authentication and javascript

Posted on 2005-03-03
7
Medium Priority
?
1,144 Views
Last Modified: 2010-04-22
Let's see if someone can explain this goofiness.  I'm using Forms Authentication in ASP.NET (VB.NET) to handle my site logins.  This works great.  However, when the users are redirected to the page they were requesting before login there is an error in the javascript that loads up the site navigation menu.  The error, of course, prevents the menu from loading at all.  Here's where it gets goofy.  If I log out and then log back in without closing the browser, the menu loads up just fine.  The menu I'm using is HV Menu from dynamic drive.

http://www.dynamicdrive.com/dynamicindex1/hvmenu/

Any ideas on this one fellas?  I'm prettymuch stumped.  
0
Comment
Question by:AshleyBryant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:farkit
ID: 13454079
Do you have a live version we can try?

Are your Navigation Menu related file under the directory that hold the pages requiring login?
0
 
LVL 2

Expert Comment

by:JerSchneid
ID: 13455523
What JavaScript error are you getting?
0
 
LVL 12

Author Comment

by:AshleyBryant
ID: 13455792
Unfortunately it's a government site that's not accessible by the outside world.  I'm not at work right now, but the errors were popping up for the menu_com.js file when it calles the BeforeStart function (assuming you've downloaded and looked at HV Menu code).

Interesting item:  I changed the FormsAuthentication.RedirectFromLoginPage persist cookie property to true and after the first time a user logs in the javascript error doesn't pop up anymore, even if they reopen their browser and start a new session.  Pretty weird that that would prevent the error.

I'm heading out of town for three weeks (Hawaii, woot!) so I'll take a look at this more when I get back.

Thanks,

Ash
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Author Comment

by:AshleyBryant
ID: 13834257
I ended up scrapping the javascript driven menu and using a CSS built <ul> menu instead.  Way WAY faster and no need to load any external files.  Requesting that the question be closed.

Thanks,

Ash
0
 

Accepted Solution

by:
PAQ_Man earned 0 total points
ID: 13872368
Question Closed, 500 points refunded.
PAQ_Man
Community Support Moderator
0
 

Expert Comment

by:KarthickSethu
ID: 25713833
<location path="Scripts">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

For me the above helpmed me solve it - just replace "Scripts" with your respective folder. Add these tags just above the </configuration> tag.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question