SavedFileName Property
Gets the name of the recorded file on the Web server. Read-only.
Usage
Get value: | String = RecordSound.SavedFileName; |
Set value: | Read-only |
Data type: | String |
Remarks
The SavedFileName property returns the filename only. Authors can concatenate the SavePath property value and the SavedFileName property value to obtain the full local path of the file.
Example
The following code example records a sound file:
<form id="Form1" method="post" runat="server">
...
<speech:SemanticMap id="SemanticMap" runat="server"><speech:SemanticItem id=SemanticItem1 runat="server" BindOnChanged="true"></speech:SemanticItem>
</speech:SemanticMap>
<speech:AnswerCall id="AnswerCall1" runat="server"></speech:AnswerCall>
<speech:RecordSound id=RecordSound1 runat="server"
AutoPostBack="True"
BabbleTimeout="3000" InitialTimeout="3000" MaxTimeout="6000"
Beep="False" Enabled="True"
SemanticItem="SemanticItem1"
PlaybackUrlBase="https://localhost/RecordedSoundFiles/"
SavePath="e:\recordings">
<Prompt InlinePrompt="Please leave your message"></Prompt>
</speech:RecordSound>
<speech:QA id="QA_SayName" runat="server" PlayOnce="true">
<Prompt id="Prompt_SayName" InlinePrompt="whatever"></Prompt>
</speech:QA>
...
</form>
The following code-behind routine executes when the RecordSound control has finished recording a sound file:
private void OnServerDone(object sender, System.EventArgs e)
{
string myName = "The name of the saved file is ";
QA_SayName.Prompt.InlinePrompt = myName + RecordSound1.SavedFileName;
}
See Also
RecordSound Class | RecordSound Constructor | RecordSound Members | RecordSound Properties | RecordSound Methods | RecordSound Events | RecordSound Remarks