Notification sound problem!

3 posts, 0 answers
  1. Hossam
    Hossam avatar
    5 posts
    Member since:
    Jan 2014

    Posted 21 Jan 2014 Link to this post

    Hello,
    I try to assign custom sound to notification but it doesn't work, also built-in sounds works good.
    this is html code
    <telerik:RadNotification ID="RadNotification1" runat="server" Animation="Fade" EnableRoundedCorners="True" EnableShadow="True" Height="100px" Width="250px" Position="TopRight" Skin="Default" ShowSound="~/facebook.wav">
    </telerik:RadNotification>

    thanx for advance.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3598 posts

    Posted 21 Jan 2014 Link to this post

    Hi Hossam,

    The ShowSound property does not resolve the server root symbol (~) so the request points to an incorrect URL, something like http://myHost/mySite/~/facebook.wav
    Thus, you should
    - either use a client-side resolvable URL like ShowSound="../facebook.wav"
    - OR resolve the property on the server, e.g.: RadNotification1.ShowSound = ResolveUrl("~/facebook.wav"); for examplem in the Page_Load event.


    Regards,
    Marin Bratanov
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hossam
    Hossam avatar
    5 posts
    Member since:
    Jan 2014

    Posted 22 Jan 2014 Link to this post

    thanx :)
Back to Top