Click here to Skip to main content
15,905,504 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDisplaying User Specific Data (based on user input) Pin
ahayw017-Sep-09 13:17
ahayw017-Sep-09 13:17 
AnswerRe: Displaying User Specific Data (based on user input) Pin
Christian Graus7-Sep-09 13:41
protectorChristian Graus7-Sep-09 13:41 
GeneralRe: Displaying User Specific Data (based on user input) Pin
ahayw017-Sep-09 14:52
ahayw017-Sep-09 14:52 
GeneralRe: Displaying User Specific Data (based on user input) Pin
Christian Graus7-Sep-09 14:55
protectorChristian Graus7-Sep-09 14:55 
GeneralRe: Displaying User Specific Data (based on user input) Pin
ahayw017-Sep-09 17:21
ahayw017-Sep-09 17:21 
GeneralRe: Displaying User Specific Data (based on user input) Pin
Christian Graus7-Sep-09 17:24
protectorChristian Graus7-Sep-09 17:24 
GeneralRe: Displaying User Specific Data (based on user input) Pin
ahayw017-Sep-09 17:58
ahayw017-Sep-09 17:58 
AnswerRe: Displaying User Specific Data (based on user input) Pin
N a v a n e e t h7-Sep-09 18:14
N a v a n e e t h7-Sep-09 18:14 
Hi Allison,

ahayw01 wrote:
I have a check box before each url. The user will need to check off which documents he/she has read and then submit the page.


This is not a good idea in my opinion. Document will be still shown in the documents to read area when user reads the documents and not check off the check box. Automating this would be a nice idea. You can make use of a Http handler and hook one for PDF extension. You only need to show the PDF link to the user without any check box. When user clicks on a PDF file link, this handler will be executed and it will do the logging.

ahayw01 wrote:
I can store the document list in a sql database but I am not certain how to maintain the log of documents for each user and how to only display the list of those documents that have not yet been read.


You may need two tables. One for storing the available documents and one for logging the users read activities. Here is a sample.

Master table - Documents<br />
  - DocumentId - A unique id to identify each document<br />
  - DisplayName - Text displayed to user<br />
  - PDFFileName - PDF file name<br />
<br />
Transaction  table - UserReadActivity<br />
  - UserId<br />
  - DocumentId - Foreign key referring Documents table<br />


You can easily get all the documents that a user has to read by using the query
SQL
SELECT *
FROM Documents
WHERE DocumentId Not IN (SELECT DocumentId FROM UserReadActivity WHERE UserId = YourUserId);
It will be good to show the documents that are already read if user is allowed to reread. It can be achieved by joining the both tables.

Hope that helps. Smile | :)


GeneralRe: Displaying User Specific Data (based on user input) Pin
ahayw018-Sep-09 10:56
ahayw018-Sep-09 10:56 
AnswerRe: Displaying User Specific Data (based on user input) Pin
droth178-Sep-09 7:09
droth178-Sep-09 7:09 
GeneralRe: Displaying User Specific Data (based on user input) Pin
ahayw018-Sep-09 10:52
ahayw018-Sep-09 10:52 
QuestionCode Required Pin
vishwjeet7-Sep-09 10:10
vishwjeet7-Sep-09 10:10 
AnswerRe: Code Required Pin
Christian Graus7-Sep-09 11:39
protectorChristian Graus7-Sep-09 11:39 
GeneralRe: Code Required Pin
vishwjeet8-Sep-09 11:22
vishwjeet8-Sep-09 11:22 
Questionproblem with ModalPopupExtender Pin
deleepkv7-Sep-09 9:54
deleepkv7-Sep-09 9:54 
AnswerRe: problem with ModalPopupExtender Pin
Christian Graus7-Sep-09 11:40
protectorChristian Graus7-Sep-09 11:40 
GeneralRe: problem with ModalPopupExtender Pin
deleepkv7-Sep-09 19:37
deleepkv7-Sep-09 19:37 
Questioncall formview Databind event from Raisecallbackevent Pin
Travelthrprog7-Sep-09 9:46
Travelthrprog7-Sep-09 9:46 
AnswerRe: call formview Databind event from Raisecallbackevent Pin
Abhishek Sur7-Sep-09 10:14
professionalAbhishek Sur7-Sep-09 10:14 
GeneralRe: call formview Databind event from Raisecallbackevent Pin
Travelthrprog7-Sep-09 12:49
Travelthrprog7-Sep-09 12:49 
QuestionProblem in TreeView Control Pin
rinku soni 237-Sep-09 3:47
rinku soni 237-Sep-09 3:47 
AnswerRe: Problem in TreeView Control Pin
Abhishek Sur7-Sep-09 9:00
professionalAbhishek Sur7-Sep-09 9:00 
QuestionASP.NET, AJAX Pin
Prakash Halder7-Sep-09 3:37
Prakash Halder7-Sep-09 3:37 
AnswerRe: ASP.NET, AJAX Pin
Not Active7-Sep-09 3:46
mentorNot Active7-Sep-09 3:46 
AnswerRe: ASP.NET, AJAX Pin
N a v a n e e t h7-Sep-09 6:13
N a v a n e e t h7-Sep-09 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.