JavaScript - Tracking Users When They Have Cookie Disabled?

Mar 29, 2011

What is the best way to track users on our Asp.net websites if they have there cookie disabled.

I heard about Flash cookies but could not find a good resource to access the flesh cookies using Asp.Net or JavaScript.

Does anyone know a better method?

View 2 Replies


Similar Messages:

How To Store Value In Session If In Browser Cookie Is Disabled

Dec 1, 2010

Can i still store value in session if in browser cookie is disabled?

View 2 Replies

Cookie Still Working When Browser Has Cookies Disabled?

Sep 2, 2011

It's weird, my firefox has cookies disabled, yet I am still able to retrieve the cookie.

Code:
protected void Page_Load(object sender, EventArgs e)
{
Response.Cookies["a"].Value = "1";
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = Request.Cookies["a"].Value.ToString(); //it returns value
}

Why is this?

View 7 Replies

C# - Finding Recommendations For Google Analytic For Tracking Users Activities In Web App Application Admin Section?

Mar 17, 2011

I'm developing a CMS for my website.

I need track Users activities in my Cms Admin section (protected by password).

I would like to know:

If is possible add GA (Google Anlytic) code and use it even if the pages where the code is placed are covered by password.

If such use can create secrity vulnerability of any kind. (If is good or bad practice).

How to retrieve easily the statistics from pages in Admin section if the folder for admin is (example: ADMIN) in GA account. They come up like /admin/mypage.aspx??? Or how???

Generally, I would like your opinion about it and if you are using this approch it in your current web application.

View 2 Replies

How To Add Some Javascript Tracking Code Into A Text Box For Submitting

Feb 3, 2011

We have a site were trusted users can add some Javascript tracking code into a text box for submitting, so naturally we have turned off Validation by adding the ValidateRequest="false" into the Page Directive.

However it we seem to be getting the error again all of a sudden : A potentially dangerous Request.Form value was detected from the client , Now we cant add ValidateRequest="false" into the Config or the Master page this page inherits from. So how do I allow Javascript to be posted, what is overridding the ValidateRequest?

We are using .Net 3.5

View 1 Replies

Javascript And Webshop Tracking/affiliate Across Websites?

Apr 17, 2010

I have a small front end to a webshop. All customers that go through my website and buy an item from the webshop I get back 5% of the amount. I need to find a way af tracking the customers i forward from my webshop to the other webshop. And then get the webshop to reply to me when the purchase has been made. In my webshop i have made a small page: collect.aspx that requests and saves the values passed in the querystring, something like this pseudo code:

string orderid = Request["orderid"];
string amount = Request["amount"];
..save to database

On the webshop i forward customers to i get to insert a javascript on the last page in the purchase flow. I have tried a lot of things but it seems that the only thing that works is to fool the browser into thinking im referring a javascript, like this:

<script type="text/javascript" src="http://domain.com/mypage.aspx?orderid=4&amount=45/>

I saw how other trackers did their bit, and this seems to be the general way of doing it. With this script however, i get all the orders, i only want to log those that belong tome, those who entered through my website.

Here is my big problem, how to do this? I added a cookie when the user opens my page, and i want to check for this cookie again when the purchase page make the callback. It weems that i cant get the cookie from the browser when it makes the "" call. This is really buggin me now.

Could anyone please tell me how this is generally done, this tracking. And what am i missing in regards to this cookie thing?

View 1 Replies

Different Users Get The Same Cookie - Value In .ASPXANONYMOUS?

Mar 15, 2010

My site allows anonymous users. I saw that under heavy load anonymous users get sometimes profile values from other users.

I first delete my cookies and get a valid unique value in the cookie value .ASPXANONYMOUS. After a couple of requests I get a new value for .ASPXANONYMOUS which is already used by another user. I see in my loggs that there are always a couple of users who share the same value in .ASPXANONYMOUS.

I can see in the my logs that 2 or more users realy get the same cookievalue for .ASPXANONYMOUS even if they have different IP.

Here is the htttp traffic. In the second image the changing cookie is shown (You have to display the image full size do be able to read the log):

One of the many requests that work ok:

Then there is this one request that changes the cookie

Then the new cookie is used

Just to be safe I removed dependency injection.

I dont use OutputCaching.

My web.config has this setting for authentication:

<anonymousIdentification enabled="true" cookieless="UseCookies" cookieName=".ASPXANONYMOUS"
cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" />
<authentication mode="Forms">
<forms loginUrl="~/de/Account/Login" />
</authentication>

UPDATE

I saw now that the http-traffic I showed is perfectly valid. A changing value in .ASPXANONYMOUS is something that happens because the cookie gets refreshed. The value contains AnonymousID and a Timestamp.

This does not lead to users having the same value in .ASPXANONYMOUS under normal conditions.

The problem realy is, that whenever the cokies get set from the AnonymousIdentificationModule, then there is a chance that a couple of user get this cookie. Setting a cookie in my application doesnt have this strange sideefect.

View 1 Replies

Web Forms :: How To Run Javascript Code When Javascript In Browser Is Disabled

Sep 20, 2010

we are working on one of our site which is having lots of javascript code.but while testing one of our tester has disabled javascript in browser.so in this scenario javascript code is not working properly. So can any one let me know is thr any work around to run javascript code while browser javascript is disabled.

View 1 Replies

Web Forms :: Best Method Of Leaving A Cookie On A Users Machine ?

Oct 3, 2010

I want to store a users dialect in a cookie on his machine, and then look it up before loading the version of my web app. What is the code to do that.

View 12 Replies

Security :: Forms Authentication - Users Logged Out Before Cookie Expiration?

Jun 16, 2010

For some reason my users are logged out of the system every 10-15 minutes or so...regardless of the configuration below....am I missing something?

[code]....

View 1 Replies

State Management :: Save Cookie When Users Marks The Remember Me Box But Its Not Working?

Apr 1, 2011

[Code]....

i'm using this to save a cookie when users marks the remember me box but its not working.

View 7 Replies

How To Handle Disabled JavaScript

Mar 24, 2010

i have a menu in my master page, which shows up on all pages. the menu consists of linkbuttons, which don't work when javascript is disabled.

how do i work around it? how common is it that someone's javascript is disabled anyway?

View 1 Replies

C# - How To Handle Validation When JavaScript Is Disabled

Apr 4, 2011

I'm using some of the typical ASP.NET's Validation Controls in my website. Now I'm trying to disable the JavaScript in my browser to test my application and of course the Validation Controls no longer works. I think it's best to try to make them work using one of the solutions down here instead of reinvesting the wheel and build a validation layer for the page or my objects -Am I thinking right?-

What do you think of these options and why:

Include in clicked button's event a code to check if the page is valid and if not explicitly call the Page.Validate(); method Check if whether the JavaScript is enabled and if not I should call Page.Validate();

View 3 Replies

Web Forms :: How To Check If JavaScript Is Disabled

Mar 11, 2010

Im replying to this post (a few years back now) but your method was one I wanted to use for checking JS on page load.

I uderstand the value of testBox will be changed to yes if JS fires, and codebehind recieves the testBox value of yes.

Ive tried your exmple but its not working like this, what I get is the hidden testBox value NO passed when JS is enabled.

[code].....

View 1 Replies

Redirect Page When Javascript Is Disabled?

Oct 12, 2010

I need to redirect to another page when the client script is disabled on the browser.

View 2 Replies

Can The Textbox Be Hidden By Javascript Even Though It's Disabled

Mar 2, 2010

n a page with textbox control, lets say this textbox is disabled on server side page load.What would happen if a javascript tries to set visibility of the textbox to false ?dit:Can the textbox be hidden by javascript even though it's disabled ?

View 1 Replies

JavaScript Enabled / Disabled In Browser?

Jul 2, 2010

How to find whether a user has enabled or disabled JavaScript in the browser or the browser does not support JavaScript?

View 5 Replies

JavaScript - How To Change The Color Of Disabled Controls

Jan 18, 2011

I wanna to change the color of any disabled control to black like in enabled one because of special case, i tried many solutions like make the textbox read only but (i donot want this solution because of some reason of this case) , i use Css file , every thing is changed except the color of the text how to change the color to be more clear .

EDIT:: tested against IE

My CSS:

input[disabled] { border:solid 1px red; background-color:White;color:red !important;font-weight:bold;font-size:medium; }

My .aspx sample::

[code].....

View 1 Replies

VS 2008 - JavaScript Disabled On Client Browser?

Jul 23, 2011

What should i do if the javascript was disabled on the client browser ?

Should I call the server side ? and how could i do such a thing if it is possible ?

I have a web page, and I am using JQuery ajax, and I'm calling the server side using the webMethod attribute, so what should i do if the client browser disable Javascript ....

View 4 Replies

Web Forms :: How To Work With Validation Controls If Javascript Disabled

Mar 24, 2011

if i turn off the java script in any browser will validation controls will work and if yes then how to work by disabling the java script

View 1 Replies

Javascript - Disabled Radio Button Losing Value After Postback

Feb 14, 2011

I have two radio buttons that are disabled with javascript when the page loads. RadioButton1 is checked by default. When I click the button to do a postback, the RadioButton1 is no longer checked.

Here's my code sample. The code behind is empty.

<asp:RadioButton ID="RadioButton1" runat="server" GroupName="group" Checked="true"/>
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="group" />
<asp:Button ID="Button1" runat="server" Text="Button"></asp:Button>
<script type="text/javascript">
window.onload = function () {
var RadioButton1 = document.getElementById('<%= RadioButton1.ClientID %>');
var RadioButton2 = document.getElementById('<%= RadioButton2.ClientID %>');
RadioButton1.disabled = true;
RadioButton2.disabled = true;
};
</script>

View 4 Replies

Web Forms :: Textbox Server Validation If JavaScript Is Disabled?

Jul 30, 2010

I am trying to make ONE thing work. The form currently have TWO Textboxes and ONE CustomValidator(connected to the first textbox). I simply want once I enter less than 4 characters in the first Textbox and tab out to the second Textbox and if Javascript is DISABLED then the server side code should stop me. I can achieve what I am trying to do if I use a button but I need to do it in the fashion I am trying decribing because if I have for example 20 textboxes on the form I want the user to see after each data entry that his validation was successful or not. Here is a sample of my code.

[code]....

View 4 Replies

Measuring Page Loading When Javascript Enabled / Disabled

Nov 25, 2010

How do it exactly?

Measuring Page loading when javascript enabled / disabled

View 1 Replies

Javascript - Disabled Link Button Still Submitting In Webform?

Dec 15, 2010

I'm trying to disable a link button to prevent the user from submitting several times.

I've seen many questions like this here on SO, most people suggest the following javascript:

button.disabled = true or button.disabled = 'disabled'

Which indeed disables the button (the button is greyed out), but the problem is that it's still clickable, and still submits!!

Here is my stripped down code:

function ValidateButton(button){
// some other code
button.disabled = true;
button.value = 'Processing...';
}
<asp:LinkButton Text="Submit" ID="btnSubmit" runat="server" onclick="btnSubmitRow_Click" OnClientClick="return ValidateButton(this);"/>

Why is the button still clickable, and submits after being disabled ? The button text is still "Submit" not "Processing...', why?

View 5 Replies

Disabled Submit Button & Javascript Error Outside Update Panel?

Jun 2, 2010

[URL]

I'm using the code the above and running into an error i can't quite figure out. Maybe its something simple or maybe it's something that can't be done. Not sure.

I created a user control (button) that references a javascript file like this:

string url = ResolveClientUrl("./Scripts/main.js");
function SubmitButton_Click(e) {
try {
var src = typeof (event) != 'undefined' ? event.srcElement : e.target;

[Code]....

The error that i am running into is this:

The buttons in the update panel work everytime without any problems. When i click a button in the update panel and then click a button outside the update panel it chockes on this line of the above javascript.

src.aspnet_onclick();

The value of aspnet_click() is 'SubmitButton_Click(e)'. This is incorrect which causes it to choke.

The value should be 'onclick(event)'

For some reason when click the button inside the update panel and then the button outside the update panel causes this javascript error but I am not sure why the aspnet_onclick() is incorrect.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved