Below code is working fine on local computer while hosting on 1and1 its not playing sound although reference checked from all aspects even by giving proper website URL
If Texbox1.Text = Texbox2.Text Then
Dim sd As SoundPlayer = New SoundPlayer()
sd.SoundLocation = "~/ok.wav"
sd.Play()
else
Dim sd As SoundPlayer = New SoundPlayer()
sd.SoundLocation = "~/No.wav"
sd.Play()
else
End If