I have a requirement where a user can access ONLY one file at any given
time out of a list of files listed in datagrid (button/hyperlink
columns). Only files listed are pdf,doc,txt.
I cannot use shared point etc. this should be a ASP.net application.
I also need to keep track of how much time a user spent looking at a
particular file.
I cannot use window.Showmodaldialog as Response.writefile does not work
on modal window.
Is this doable??,
How to handle: What if a user looses internet connection while
reviewing a file. etc.
Can anyone throw some ideas on how to implement this.
Any help would be greatly appreciated. 5 1600
There really is no reliable way to keep track of the time a user spent
reading a file. You could use Ajax I suppose with a timer on the client that
fires a call back to the server, but this only tells you how long the window
was opened on the client. It doesn't tell you, for example, if the user was
looking at that window the whole time it was opened.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
<v.*******@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com... I have a requirement where a user can access ONLY one file at any given time out of a list of files listed in datagrid (button/hyperlink columns). Only files listed are pdf,doc,txt. I cannot use shared point etc. this should be a ASP.net application.
I also need to keep track of how much time a user spent looking at a particular file. I cannot use window.Showmodaldialog as Response.writefile does not work on modal window.
Is this doable??, How to handle: What if a user looses internet connection while reviewing a file. etc.
Can anyone throw some ideas on how to implement this. Any help would be greatly appreciated.
Correction: Rather then "window" I shoud have said "document." If the
document is not HTML, you would have to insert it into a frameset with
another frame containing the Ajax code.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
<v.*******@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com... I have a requirement where a user can access ONLY one file at any given time out of a list of files listed in datagrid (button/hyperlink columns). Only files listed are pdf,doc,txt. I cannot use shared point etc. this should be a ASP.net application.
I also need to keep track of how much time a user spent looking at a particular file. I cannot use window.Showmodaldialog as Response.writefile does not work on modal window.
Is this doable??, How to handle: What if a user looses internet connection while reviewing a file. etc.
Can anyone throw some ideas on how to implement this. Any help would be greatly appreciated.
I am sorry I was not clear in my Question. Infact, I meant "How much
time a User is keeping the file open, noting down the opening and
closing times of the Document" and NOT "How much time the User is
looking at the file". Thanks for the Suggestion, I will try to
implement that and if someone has more ways of doing it Please let me
know.
The user is not looking at "the file." The user is looking at a downloaded
*copy* of the file.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"VB newbie" <v.*******@gmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com... I am sorry I was not clear in my Question. Infact, I meant "How much time a User is keeping the file open, noting down the opening and closing times of the Document" and NOT "How much time the User is looking at the file". Thanks for the Suggestion, I will try to implement that and if someone has more ways of doing it Please let me know.
Hi,
VB newbie wrote: I am sorry I was not clear in my Question. Infact, I meant "How much time a User is keeping the file open, noting down the opening and closing times of the Document" and NOT "How much time the User is looking at the file". Thanks for the Suggestion, I will try to implement that and if someone has more ways of doing it Please let me know.
The only more or less reliable way to do that is to use AJAX to
periodically poll the server, and to note down the time where the poll
starts. You cannot reliably send an event to the server when the window
gets closed, or when another document is displayed.
Additionally, this will fail when JavaScript is blocked on the client
for some reason, something as simple as an "alert" will stop the web
methods to be called.
Use with care...
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tony Girgenti |
last post by:
Hello.
I developed a web consuming windows application/form program with VS.NET
2003, VB, .Net Framework 1.1.4322, ASP.NET 1.1.4322, IIS 5.1.
Using this code to open a simple text file. If i...
|
by: Tony Girgenti |
last post by:
Hello.
I developed a web consuming windows application/form program with VS.NET
2003, VB, .Net Framework 1.1.4322, ASP.NET 1.1.4322, IIS 5.1.
Using this code to open a simple text file. If i...
|
by: FFMG |
last post by:
In my site I have a config table, (MySQL), with about 30 entries; the
data is loaded on every single page load. This is not the only call to
the db, (we do a total of about 8 calls to the db).
As...
|
by: Jeff |
last post by:
As I'm learning PHP, I'm making a fair number of mistakes in syntax.
In perl, you can turn on reading these errors from the browser by
adding this:
use CGI::Carp 'fatalsToBrowser';
Is there...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |