CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 8/24/2007 4:23:14 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 6 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
JKlander
Asp.Net User
LoginStatus not working in Firefox 2 or Opera 9...8/24/2007 4:23:14 AM

0/0

So I've got a fairly simple master page which has a LoginStatus control  which appears to render fine with the following code:

<a id="ctl00_loggedInStatus" title="" class="AspNet-LoginStatus" href="javascript:__doPostBack('ctl00$loggedInStatus$ctl02','')">Login</a>
 When browsing with IE7 the onclick event fires and I'm redirected to my login.aspx page defined in my web.config.
Unfortunately when I browse the page in Firefox or Opera nothing happens when I click on the link.
 I'm hoping it's just something small I've missed, but any help would be greatly appreciated.
Just for context, the actual code in the master page is:  
<asp:LoginStatus ID="loggedInStatus" runat="server" LogoutPageUrl="~/home.aspx" />
 , and the code in the Web.config is:   
<authentication mode="Forms"><forms loginUrl="login.aspx" /></authentication>
 
Russ Helfand
Asp.Net User
Re: LoginStatus not working in Firefox 2 or Opera 9...9/6/2007 3:26:54 PM

0/0

I don't really understand why that is... but I can give you some data as a base of comparison...

I visited this page in IE7, FF 2.0.0.6 and Opera 9.22 http://www.asp.net/cssadapters/membership/loginstatus.aspx. In all cases the HTML that is rendered for the login "button" is an anchor (A) tag just like what you show in your posting. And in all 3 browsers that anchor works correctly for me. That is, it causes me to be taken to the login page.

Can you try that live page, too, and post your results? If it works, then I guess you need to try to see what you are doing differently in your site. If it doesn't work then I'd start looking at the options settings in FF and Opera to see if maybe you disabled JavaScript or set some other preference that is problematic.

Sorry, I wish I had an immediate "answer" for you but we're going to need to do some diagnostic work together to get to the bottom of this.


Russ Helfand
Groovybits.com
JKlander
Asp.Net User
Re: LoginStatus not working in Firefox 2 or Opera 9...9/6/2007 4:38:29 PM

0/0

 Russ,

 Thanks for the response!

If I create a new page and drop a LoginStatus control onto the Default.aspx page (no master page) and load it in Firefox, nothing appears to happen on click, and the Error Console gives me:

__doPostBack is not defined  Line: 1

javascript: __doPostBack('LoginStatus1$ctl02',")

I can view the CssAdapters web site without problem, and I can load the CSS Adapters Sample project on my local machine without problem. I'm not sure if it has something to do with the way the code in the master pages and sample modules interact with the sample pages or what, but I just want to get this to work without trying to reengineer all that support code if possible. Thanks in advance for any help you can provide.
 

Rasetti
Asp.Net User
Re: LoginStatus not working in Firefox 2 or Opera 9...9/7/2007 11:51:05 AM

0/0

Hi!

Can you do a View Source of your rendered page under Firefox and / or Opera and see if you can find the following code??

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script> 

For what you are saying, this bit seems to be missing, or, as Russ said, there could be a weird user setting in the browser thats breaking JavaScript. What happens if you do a clean install of any of the browsers?

 

Cheers,

 Juan


Juan Barrera
MCTS


Please remember to click "Mark as Answer" on this post if it helped you.
Analyticalchaos
Asp.Net User
Re: LoginStatus not working in Firefox 2 or Opera 9...10/10/2007 9:06:03 PM

0/0

I don't know if this is relevant to in this situation but I had the same situation show up in one of my pages. 

The fix turned out to be very strange.  We had a <body> tag that was malformed ( was <body''> )  Once I fixed that tag, everything worked just fine.  Apparently that killed the DOM tree in FF?  Not sure why it would work in IE but not FF but that was the problem for me.

 Hopefully this helps someone save an afternoon of frustration!

 

5 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

LoginStatus problem - newsgroup.asp-net-forum.general_asp-net-security ... LoginStatus not working in Firefox 2 or Opera 9... - newsgroup.asp-net ... LoginStatus not working in Firefox 2 or Opera 9..., > ROOT > NEWSGROUP > Asp.Net ...
LoginStatus problem - newsgroup.asp-net-forum.general_asp-net-security ... LoginStatus not working in Firefox 2 or Opera 9... - newsgroup.asp-net ... LoginStatus not working in Firefox 2 or Opera 9..., > ROOT > NEWSGROUP > Asp.Net ...
NG BBS — Firefox 3 sucks Checking login status... Not a member? SIGN UP! Forgot login? USERNAME: PASSWORD: Save Info! ... since the era of 2.x, but it's still not as good as IE. ...
NG BBS — Firefox Addons? Checking login status... Not a member? SIGN UP! Forgot login? USERNAME: ... Currently the only browser on windows that can pass the Acid 2 test is Opera 9 ...
Malformed page - novell.support.bordermanager.proxies - Web Programming ... ... support.bordermanager.proxies, Date: 11/9/2004 2:42:46 PM, Replies: 1, Views: ... LoginStatus not working in Firefox 2 or Opera 9... - newsgroup.asp-net ...
[Ext] Opera Wand for Firefox - SecureLogin - MozillaZine Forums ... to remain anonymous, and sometimes logins that worked in the past quit working. ... right-click on Secure Login's status bar icon (Dilbert #2), it pulls up the ...
Developer Flotsam <TextBlock x:Name="LoginStatus" Text="Not yet loaded"></TextBlock> ... This code has been tested with Firefox 2 and 3, Opera 9.5, IE 7 and Safari 3.1.2. ...


 
All Times Are GMT