I am beginner to asp.net . i need to alert the currently logged in user as new message arrived in the right bottom page . How can i do this
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you have created a div that contains controls relating to the users inbox, or a custom message.
Firstly, I suggest putting the controls in an asp:Panel, and not a . This is so you can hide and show the panel at any time.
Force the panel to be hidden on page load. Then, create a method in Page_Load or Page_Init to check when the user has a Message. If so, make the panel visible.
I am assuming you have the messages stored in some kind of DB (Database). If so, create a new column to the PrivateMessage table to save weather the user has read the PM or not. This will allow you to easily distinguish when to show the asp:Panel.
Use a float tag for the asp:Panel, then position it wherever you want it on the screen.
Without any of your source, or any information, this is the best I can give.