Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello, please i have a question which no one have answered me on...
If you look at the top page of codeproject, or if you have a facebook account and look at it's top, you will see a red part with some numbers representing your notifications..
now that is exactly what i want to know to code and not someone telling me about noty or signalr when you know that it doesnt offer this kind of service.
i want to code a notifications page for my users so that they can see all present notifications... please help me on this, any good programmer. pleaseeeeeeeeeeee
Posted

To perform so you can do something like this.

1-Use Bootstrap badge for HTML. i.e. http://getbootstrap.com/components/#badges
2- Use Jquery and CSS to create the notification popup.


For a detailed example you can have a look at HERE.


Hope this will help.
 
Share this answer
 
Comments
[no name] 12-May-15 14:17pm    
Thanks. Exactly what i've been looking for. Just don't know why others keep you from knowing the truth
VICK 13-May-15 0:38am    
You are welcome Dear. If it really helps you , dont forget to Upvote this solution. :)
There is nothing special about showing the information you want. It is just like any other piece of information you want to show on a web page. If you are a programmer it should be a simple task provided you know what your "notification" is defined as.

For example, if you want to know that people have responded to forum post by a particular user and you want to show how many responses there have been next time the author of the post visits that page. You would define your business logic, ie there have been responses to your post since your last visit. You have this data stored so you would create a query to retrieve this data given the business logic. The data from this query would be passed back to your UI layer for presentation if any of several ways.

The entire process is exactly the same for any data.

People mention SignalR, because that is just a technique for getting the data from you back-end to your front end in "real time"
 
Share this answer
 
ASP.Net provides SignalR[^] which can be very useful when there is a need to implement notifications and real time updates. You can find a lot of tutorials on it as well.
 
Share this answer
 
Comments
[no name] 4-May-15 14:59pm    
Hello, please i want to edit my profile. With linq i can query the database to retrieve the profile details but when i click on edit, it simply gives an error. The url is displaying "profile/edit/1" but its like that pattern doesn't work since in my index i changed it to not return a list. Below, is what i have tried:
public ActionResult Index()
{
var spc = (from d in db.profiles.ToList()
where d.username == User.identity.Name
select new profile()
{name = d.name,
// other properties
});
return view(db.profile.ToList());
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900