This is a migrated thread and some comments may be shown as answers.

Notification sound problem!

2 Answers 138 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Hossam
Top achievements
Rank 1
Hossam asked on 21 Jan 2014, 12:31 PM
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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Jan 2014, 02:23 PM
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.
0
Hossam
Top achievements
Rank 1
answered on 22 Jan 2014, 08:40 AM
thanx :)
Tags
Notification
Asked by
Hossam
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Hossam
Top achievements
Rank 1
Share this question
or