Web Forms :: Profile Property For Anonymous Users Not Saving In Firefox Or Safari?
Aug 4, 2010
I have a user control which, when pressing a command button, sets a property for the Profile (which has been marked as allowanonymous=true), then save it using Profile.Save().
Now, in IE this works fine - no problems at all. I then go to the page where the value is used - and it's there and can be used.
However, exactly the same routine when running in Safari or Firefox doesn't work - although when you're on the same page where the value is set it will immediately state that the value is ok, do a postback and it's gone!
Here's some very simple code to show the problem. Whilst IE will always dump 'plop true/false' to the screen (yes, I know - very juvenile!), FF and Safari will the first time, but on postback will just dump True to indicate it's a postback. (oh, and autosaveprofile is set to true in this example - otherwise there'd be a Profile.Save() below the set property).
[Code]....
I can't use Cookieless session states as the CMS I'm using won't allow it. I've also used Fiddler to try and track the issue, but no joy.
I'm guessing it's related to the way FF and SF handle cookies - but both are set to accept anything. Could it possibly be anything to do with the ASP.Net Development Server? (ie. the address is[URL]The fact that it never manages to save the value
I have a Postgre profile provider that runs ok with membership, roles, profiles etc.. But I have a problem.I'm trying to have a anonymous user profile but the provider get an error when I try to save the profile.It says:
Error 23503: insert or update on table "profiles" violates foreign key "pofiles_username_fkey"I configured my web.config with anonymousIdentification enabled, and profile ok, But it seems that when the profile saves, it can not find the anonymous user in the users tables that it's related with profles user. I googled for long time and I think I have all good configurated, but somehow, profiles with anonymous user is not working.
I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.
I am developing an asp.net website on my local box using VS2010 Ultimate edition. Suddently, when I made Firefox as my default browser, none of the data or control show up!! The same pages work when I use IE8 and Opera, but not with Firefox or Safari. Usually I keep changing the browsers, to make sure that the pages work in all the browsers. Strangely, when I click on the "Outline block level elements" on the Firefox, the controls and data show up, and are highlighted! Once, I unselect the option, they are gone again!
I have an ItemTemplate inside a listview with a linkbutton wrapped around three table rows. The linkbutton is supposed to make the whole rows clickable but this only works in IE. Does anyone have an idea about why? The link works if I move the rows out of the linkbutton and write some gibberish text instead, but that's not what I want.
So I have an asp.net Web Application (Not Web Site) that I am trying to support profiles for anonymous users. I have a form and I want anonymous users to be able to enter their name and email only once, and have that information automatically accessible on the next load for them.
In my Web.config I have anonymous ID setup like so:
Finally, due to my app being a Web App and not a Web Site, I am using the profiles via this custom object:
public class UserProfile : ProfileBase { public static UserProfile GetUserProfile(string username) { return Create(username) as UserProfile; } public static UserProfile GetUserProfile() { return Create(Membership.GetUser().UserName) as UserProfile; } [SettingsAllowAnonymous(true)] public string FullName { get { return base["FullName"] as string; } set { base["FullName"] = value; } } [SettingsAllowAnonymous(true)] public string BuildEmail { get { return base["BuildEmail"] as string; } set { base["BuildEvmail"] = value; } } }
This code is based off of this reference. The issue is that that code does not support anonymous users, or if it does I don't know how. I can't use the GetUserProfile() method with no parameters because if the user is anonymous, Membership.GetUser() is null. I could pass in the anonymous ID token into the first GetUserProfile(string username) method but I cant' find any way to get the anonymous ID token for the current user. Does anyone know how to get this information? Google doesn't seem to be returning useful results.
I've defined node styles for my TreeView instance in markup (using <LevelStyles> for example). Everything renders correctly in IE7/8 but, when rendering in Chrome, Safari or FireFox, the styles are not being applied. From looking at the source code for the page, I can see that the various runtime css classes are being injected into the top of the page, but the class attributes on the <a> tags (within the generated TreeView HTML) are empty (class=""). In IE, the class attributes contain references to the classes that were injected into the page.
Can anyone explain why this is happening? I can see no logical explanation for this, and it's a big issue - My client primarily uses Safari, as they're Mac based.
In the ASPX.CS file I define a datasouce and manually populate it.
DataColumn MDC = new DataColumn(); MDC.AllowDBNull = false; MDC.AutoIncrement = true; MDC.AutoIncrementSeed = 1; MDC.AutoIncrementStep = 1; MDC.ColumnName = "B2"; MDC.DataType = System.Type.GetType("System.String"); MDC.Unique = false; MDT.Columns.Add(MDC); MDC = new DataColumn(); MDC.ColumnName = "PRPT"; MDC.DataType = System.Type.GetType("System.String"); MDT.Columns.Add(MDC); I then manually fill each row: DR = MDT.NewRow(); DR["B2"] = "Test1<br/>Test2"; DR["PRPT"] ="Test3<br/>Test4"; MDT.Rows.Add(DR);
When the Grid is viewed using IE - both the Header and the data rows properly display the cells with multiple lines. When displayed using Firefox or Safari - only the Header utilizes multiple lines - the data rows are on a single line ---- "Test1Test2" what needs to be done to display multiple lines in all three browsers.
The text on my website is skewed and different areas are running together when viewing my site on a Mac using either Firefox or Safari. Is there anything I can do about this?
I would like to ask if somebody knows how to deny view of page in the telerik rad menu to anonymous users. So if the user wont be leged in then he wont be alble to see a page in the rad menu, but when he log in the the page show up in the menu.
I've had an issue with a javascript menu not working inside an Ajax update panel after the ajax postback. I was able to solve this in IE by calling the menu js function with a pageLoad() function which is automatically called by ajax. However I then discovered it doesn't work in any other browser.
Having search around I've only found two references to the issue; one where someone else has found the same thing and another where someone states that pageLoad isn't stable in other browsers.
Is there any way to solve this issue in browsers other than IE?
Tab buttons and links are little hard to click on Firefox, Safari, Chrome. hover areas are as small as clickable area,They work perfecly well on IE
I have link for LOG IN normally(on IE) hover works and pointer changes to hand when mouse gets appoximitly one pixel range and it is clickable.
But in other browsers event LOG IN--- link works only when mause gets halfway over text(you can take dashes as referance upper part of the dash works good but buttom part is not clickable )
using System; using System.Collections.Generic; using System.Linq; [code]....
When I click the action link in IE the controller code runs but the div is NOT updated. Do it in ANY other browser and it works just fine. Is this (yet another) known problem/bug with IE??
I have created website in visual web developer 2010 express and would like to test it in firefox/chrome/safari. How to launch firefox/chrome/safari in visual web developer 2010 express?
I find that each time I run asp.net application in browser other than ie (safari/chrome/firefox) within visual studio, will cause all cookies on my pc deleted. This is really inconvienient since cookies contain important info on my pc. I'd like to know the solution for it.
Is it possible to embed an external application inside the browser (IE, Chrome, Safari, Firefox) so it will look like a native web application but actually having access to the USB ports of the client machine? I have heard that I need to make an ActiveX control. I would like to use the .Net framework, but if that is not possible, maybe using Java or C++ will be fine.
I have to make an application that will allow to the users to connect an external device to an USB port, this device will take a backup of the information contained in a SIM card and send it to the user's account online agenda. So the user can restore it later using the same application. This should be a web application or at least look like one.
If the first is not possible. Is there any way to launch an external application from all the browsers, and then pass information to the browser window to allow it to refresh after the backup has been made?
I am embedding a popup extender inside a tab...simple enough - for some reason the content is visible when the page loads - it can be dismissed by selecting the button and then dismissing the popup. Everything works in compatability mode.
I can't tag the panel as visible=false as it is no longer rendered at all.
I am working on an internal application... i setup IIS 7 to use windows authentication since its behind the firewall and on the domain.. there is a "public" side.. and an "internal" side... if your not part of IT.. you should get the public side.. this is just informational.. my problem is that there is 1 or two pcs that are not on the domain and nobody is logged into them.. how can i just redirect anonymous users to another site?
everything i read says you can't use anonymous AND windows auth.. so my thought was to just redirect the anonymous users to another site.. how can you do that?
I use LinqToSql in my project. I have a class called MessageBLL and this class has a method called GetAll which returns List<object>. I returned object because I get data from two tables. Here is my code;
[Code]....
I want to use this in my Default.aspx.cs as like this but intellisense is not show CategoryName :[Code]....suggest me return as IQueryable but I couldn't do it in that way.
I'm trying to add a directory for anon access in IIS 7.5. It works under Web Dev but not IIS 7.5
I'm currently using this web.config in the directory. This is a directory with style sheets:
<?xml version="1.0"?>
Note: As an alternative to hand editing this file you can use theweb admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in WindowsMicrosoft.NetFrameworkv2.xConfig
I've went to the folder and under Authentication, I've changed anonymous authentication from IIS_USR to pool. This seems to have correct it.
I will reward anyone who provides a very good explanation and resources for understanding this setting. Also, how to apply it globally would be good to know -- for all folders.
Is there an easy way to cache ASP.NET whole page for anonymous users only (forms authentication used)?
Context: I'm making a website where pages displayed to anonymous users are mostly completely static, but the same pages displayed for logged-in users are not.
Of course I can do this by hand through code behind, but I thought there might be a better/easier/faster way.