have message,senderid,receiverid columns...in chat window am displaying only msg with senderid...how to accomplish this
How to maintain current session id in chat application
Hi..I have chat app..If p1 and I are chatting...the previous values will b coming..if i chat with p2 then all old messages (sent to p1) are also coming...I
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Abhineet SrivastavaRank #1,890 · 783 reputationPosted Jul 20, 2013, 3:11 AM EDT
Are you storing Sender Or receiver id in Viewstate or session?
yadagiri uppariRank #7,043 · 250 reputationPosted Jul 20, 2013, 3:47 AM EDT
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Jul 20, 2013, 8:10 AM EDT
dataview.rowfilter="(senderid=session["senderid"] and receiverid=session["reciverid"]) and (reciverid=session["senderid"] and senderid=session["reciverid"]) "