C# - Finding How Long A User Spend In A Website?
Mar 12, 2010How to find how long a user spend in a website . It is to find the time span a user send in a website.
View 1 RepliesHow to find how long a user spend in a website . It is to find the time span a user send in a website.
View 1 Repliesi have a project created in asp.net 2.0. i want to calcuate how much time user spend on my site ???
i can do it by using (logout time - login time) ...but what happens if user directly close the browser by clicking [X] button..
I there a way to get the user id that they signed on to the computer with from web site project, without changing IIS so they will have to login? This will be interanet and remote internate users.
View 3 RepliesI'm an ASP.NET newbie, but not so new at programming in general.
I'm creating a commercial website, and I want to allow an admin to add new articles (an article consists of text, images and various properties such as category).
I am trying to decide the optimal Modus Operandi. This site is commercial, so SEO is a major consideration. This means that I want each url to be "unique". That is, if someone navigates to an article about raccoons, he should be redirected to [URL]. This means - I can't have one page that loads the appropriate article dynamically a-la AJAX (gotta use deep-linking)
So how exactly do I do this? suppose the admin entered his text, uploaded the images and set the article properties. I create a new subfolder, save the images to the server (I understand that saving images to a DB is a big no-no), their addresses in a DB, and the content itself to the DB. But now what?
How do I go about creating the actual page?
Is there a function for creating a new aspx file? then what about its corresponding cs file? Or is it unwise to use aspx? Maybe plain html? but then how does it work with my site's master page? Or maybe just create another copy of a general aspx file which is populated with an article according to a parameter?
I need to save how many times (seconds / minutes) each user spend in my site from his enterance to my site till exit it. How can I do this?
View 9 RepliesWhen my Application face a long-time process, i.e fetch a query (SELECT a, b, c FROM d)This query needs 10 seconds to be completed in the MSSQL Management Studio, but when the ASP.NET application try to fetch it, it refuse to return any response to any other requests made on that Server.
I am hosting my Application on VPS Server with good specifications, and I am giving this example the (SELECT a, b, c FROM d) just to tell you the issue, it can be any process, maybe processing a movie, or even fetching some data through external API that is experiencing some slow-down,or whatever.
I have an intranet site which is randomly timing out on pages. I have 5 similar sites and none of them have this problem. I'd like to test out what is causing it to time out, but it's an intranet site so many web testers can't reach it.
View 1 RepliesWe currently have two applications that will be using this. One is a web application, the other a desktop app. Both of these require users to login/authenticate, the same credentials can be used for either application.I want to build an automatic login mechanism that will fill in all the various login/order details and be able to call this from either app mentioned above. I've been thinking that the best way to do this is to pass this information encrypted through the URL. ie https://mysite.com/TakePayment.aspx?id=GT2jkjh3....
Since we don't want to integrate the payment processing too tightly into the desktop app to reduce our PCI scope, we decided to have it open the browser to a central, secured payment page through a simple shell execute with the full URL causing the default browser to open that page.Originally we were using AES for the encryption, but this is currently being re-examined as we would prefer not having to give out the key to the end user (AES is symmetric, symmetric encryption = both parties need the private key, why bother even encrypting then since we're going to be distributing the app?) So I'm looking at switching it over to use Public Key Encryption with the built in RSA routines within .NET
After coding up the RSA portion I noticed most examples on the net used 1024bits for the key-length, I went with this and now have our portal working with public key encryption, however the URLs generated are much much longer than when I was using AES so it made me start researching what the max limits for URLs are. http://www.boutell.com/newfaq/misc/urllength.html Says that IE is the limiting browser at about 2048 characters in the path portion. My initial tests with the RSA encryption show my urls will be around 1400 chars long.My questions boil down to this:1) Is there a better way for passing information from a desktop app to a website that I'm not thinking of? I'd prefer it be just as easy to use from another web page as it is from the desktop, hence my current solution.2) Is 1024 bit RSA keys necessary? Or overkill for something like this? A shorter key would mean shorter encrypted text right?3) Are there any other unforeseen problems with URLs in the 1200-1400 character range? Proxies? Firewalls? Web-Accelerators?
I have a large(ish) text-box on my page that needs to hold a website URL. The text-box is reasonably wide however most URLs will not fit in on a single line. I want the website address to wrap a single line like this:
[URL]
However what my textbox is doing is this:
[URL]
Does anyone know how to automatically wrap a string that does not contain line feeds / white space? (Yes - Wrap is set to true!)
In development, our Asp.Net 4 website takes a fairly lengthy time to start after the project libraries are built
We do a fair amount of population of statics etc, but not enough to justify the length of time it takes the app to come up (probably 3-4 minutes)
We aren't building the website, just the libraries, and batch != true in the compilation element in the .config file.
I will try log some diagnostics, but any other pointers would be useful
I want to implement user login function , that allow user to login after couple of weaks without asking username and password again. I have read many article and got that it is maintain by Cookie but don't know how to implement this one. A good example is seen in gmail, facebook [URL] .... that allow user logged in for couple of weaks. I also want to maintain a cookie table for just keepig the records of user logged in from different system.
View 1 RepliesI've developed a web application to accept video file uploads and then pass them to a backend service on an external server. The application runs without error on the visual studio debugging webserver, but once on a production iis 6 or 7 server, yields a timeout error at about a consistent amount of time into handling a large upload. Specifically, it errors in the middle of transferring the video file to the external server, once the application has successfully received it from the client. I'm aware of several timeouts to be configured related to the problem, and have done so. The application's web config has been tested with one or both of the following settings
<system.web>
<httpRuntime executionTimeout="9999999" maxRequestLength="2048000" />
</system.web>
and
<configuration>
<location path="default.aspx"> (the page at issue that's timing out)
<system.web>
<httpRuntime executionTimeout="9999999" maxRequestLength="2048000" />
</system.web>
</location>
</configuration>
And within the initialization of the webrequest made to the external server to send the video received from the client browser:
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.ContentType = "multipart/form-data; boundary=" + boundary;
httpWebRequest.Method = "POST";
httpWebRequest.Timeout = System.Threading.Timeout.Infinite;
So with the execution time limits on both the webform as a whole and the connection made to the external server, I'm at a loss for what timeout is left unconfigured, or how to determine such, when I continue to get the following error: Unexpected error executing Brightcove Upload:...........................
I have a web application where users are permitted to submit their resumes. When the form is submitted, the data is inserted into a new record in an SQL table. One of the fields in the form allows them to copy and paste their entire resume text into a TextBox control, which is inside the InsertItemTemplate of a FormView. This particular control is bound to a column in the SQL table that's of datatype nvarchar(MAX). It works, but there are no line breaks and when viewed the resume is just one long continuous block of text. How can I change this so that line breaks are preserved? Do I need to use something like a "cute editor" control? And finally, how do I protect against malicious code? The insert query is parameterized, and the FormView refers to an insert method in a TableAdapter in my dataset.
View 6 RepliesNote:- i don't want to use updateprogress etc. control of ajax
on button click, long task(e.g thread) runs in my webpage for about 4-5 minutes.I want to show status to user either by a processing image through javascript(image must be shown in a certain part of page other part of page will remain intact) or an exact status of process if possible. i have tried a lot but all in vein.
I'm using the standard ASP membership provider
The first user of my site per day (or if nobody has used the site for awhile) gets a pretty long wait to bring up login.aspx. Subsequent users, site comes up immediately.
I understand this is an IIS setting to save resources. (I'm on IIS6). What is the community doing about this problem? I've read about writing programs to keep the site alive by hitting it every 20 min, but there must be a better way. One of my project is for a small business to provide order information for their customers -- gets used every day but not that many times per day.
Is this the reason most developers will have the first page as index.html then you click to login from there while it says "please wait for login" or similar?
I know that in a web site project VWD will cram all the files into 1 specified folder which holds all the peices of your site together in a nice little container.
However, in a web based application (rather than web site) you have a similar folder but it contains a solution file; people often say this has more advantages, but from my early days of learning what would those advantages be?
I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.
View 4 Repliesfind the links containing the built in Asp.net Website Templates, as i want to create my personal web site using these templates.
View 4 RepliesI have seen many of website are displaying RSS Feeds on their website. Example:
[URL]
What i observe is Google is even giving them good rank despite of duplicate content. What i want to know is... How can I find RSS Feeds? Also where can i found RSS Feeds for Yahoogroups?
I am going to develop a website in ASP.NET in which users can submit article for this i need a CMS(Content management system ) to handle their article and users comment. which CMS will we good and simple.
View 8 RepliesI'm trying to edit some code in a website solution which I have opened in vs. I notice that there are only 3 files showing and it doesn't have a web.config and it uses a popup box when I debug it instead of opening up a webpage like default.aspx. I see that I have to use debug.write and not response.write as I normally would. How can I see my debug.write statements?
View 1 Replieswhat I'm looking to do is to get a web site search function where I can enter the URLs and body text myself rather than running a spider unless the spider can handle my url querystring structure. Obviously, something automatic would be best but I'm not too choosy as long as it is free.
View 2 Repliesi want to find out the websites that are people are coming from when they come on my website. so lets say someone comes from [URL] or [URL] or someone came through email or somewhere else. how can i do this?
View 2 RepliesI have my existing web site developed using ASP.NET.
It's college management system. Now I need to redevelop it on MVC2.
What all changes do I need to do?
I am little bit aware of MVC and have done some exercises also.
Thing I know is I can keep my database intact but there will be massive changes at other places.
WHat will be the better way to minimize the changes?
i need to find out what are the details of the processor the server has. i need to know which kind of processor, type of OS, RAM etc. i've got a reply from one webhosting company: "This is a shared hosting server, it is a dual processor (quad core xeon 2.8) 16Gb ram, mirrored 300GB SAS15k drives"how can i get those details on other servers without the webhosting company telling me?
View 1 Replies