I have many users. Once the user logs in, he will see a gridview containing documents list in his profile. Say there are two users abc and xyz. abc has documents list like little, tiger, load and xyz has documnets list flower, tiger. I want to create web page in such a way when abc logs in, his home page’s gridview should contain little, tiger, load and when xyz logs in, his home page’s gridview should contain flower, tiger. How can I do this?
Share
Thnx all for ur support. I finally found the solution. In my database table I included one more column named username. When i create any documents i made clear tht i have included the username also to store in the database table. While displaying the gridview which gets the data from the database table, i filtered the data depending on the username like select filename, date from abc where username = @username. I have added a loginName just above the gridview and stored its value in an invisible lable. I made use of this lable as a control ID in the where clause in the database table. So now whoever logs in, creates the documents, will be able to see only those documents.