Is this a good fit for the Notification control

3 posts, 0 answers
  1. MArkB
    MArkB avatar
    7 posts
    Member since:
    Dec 2012

    Posted 10 Jun 2013 Link to this post


    What I'm asking is the Notification control is a good fit for the scenario I'm describing below.

    What I want to do is to notify users of changes and scheduled work to the system. I want to have a control, like a small icon, to indicate when the user has pending messages. That is except when the message is a high priority in which case I want the message to show up.

    Also, as each message is viewed the user gets the chance to acknowledge the notification so it won't be seen again. That acknowledgement is stored in the DB and prevents the message from showing up again. (This acknowledgement part seems to be the most difficult to me.)

    I can do it as a service or directly to the DB in the application. I'd like to put the thing together as a user control so it can be utilized in different applications with minimal coding.

    You know, It thought it was a complex scenario and would take a lot of writeup.


    MArk B.
  2. Marin Bratanov
    Marin Bratanov avatar
    3564 posts

    Posted 12 Jun 2013 Link to this post

    Hello Mark,

    You can use the Page_Load event of the user control where the RadNotification is to check your database. If there are messages the user needs to see - Show() the notification from the code-behind: If you only need to show a simple string the Show(newText) overload will make the job simple. Otherwise add the desired button and checkbox in the ContentTemplate of the control together with a label or literal where the message will be shown. You can check for the value of this checkbox in the Page_Load event again. If it is checked - store the user preference in your database so no further notifications will come up (so this piece of code should come before the check whether Show() needs to be called). After that you can also set the Visible property of the notification to false to effectively remove the control.

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. MArkB
    MArkB avatar
    7 posts
    Member since:
    Dec 2012

    Posted 24 Jun 2013 Link to this post


    Thanks for that response. It's exactly what I was looking for. I can eventually hack my way through anything but it helps so much to have not have to question the direction I'm going in. Your response totally fit that bill.

    MArk B.
Back to Top