Click here to Skip to main content
15,905,071 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHELP! Problem in adding web part to page layout Pin
Amarnath J19-Jan-09 1:13
Amarnath J19-Jan-09 1:13 
QuestionConditional Formatting in a CSS Pin
DoxMan19-Jan-09 1:10
DoxMan19-Jan-09 1:10 
AnswerRe: Conditional Formatting in a CSS Pin
Christian Graus19-Jan-09 2:03
protectorChristian Graus19-Jan-09 2:03 
GeneralRe: Conditional Formatting in a CSS Pin
DoxMan19-Jan-09 2:18
DoxMan19-Jan-09 2:18 
GeneralRe: Conditional Formatting in a CSS Pin
Paddy Boyd19-Jan-09 2:35
Paddy Boyd19-Jan-09 2:35 
Questionsend report via FAX Pin
bhaumikdv19-Jan-09 0:58
bhaumikdv19-Jan-09 0:58 
AnswerRe: send report via FAX Pin
Christian Graus19-Jan-09 2:03
protectorChristian Graus19-Jan-09 2:03 
Questionhai Pin
naagrjuna19-Jan-09 0:32
naagrjuna19-Jan-09 0:32 
Hi,
i am working on a project where we required recording audio/VOICE from outer source that may be through micro phone to our application.can anybody suggest me about this....if possible please give demo code.
if I have to use any third party tool please suggest me. the below asp.net code working in local system only but i need recorded file is save in webserver(iis).



1. Open C#.net web applications. And added the blow namespace.

using Microsoft.VisualBasic.Devices;
using Microsoft.VisualBasic;
using System.Runtime.InteropServices;

2. Add the below API.
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);

3. Create three Buttons and given the below name and text for the buttons.

1. Record
2. SaveStop
3. Read

1. Under Record Button Click paste the below Code:

// record from microphone
mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
mciSendString("record recsound", "", 0, 0);

2. Under Save / Stop button Click,


// stop and save
mciSendString("save recsound c:\\record.wav", "", 0, 0);
mciSendString("close recsound ", "", 0, 0);
Computer c = new Computer();
c.Audio.Stop();

3. Under Read Button Click

Computer computer = new Computer();
computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background);


Save and Execute it.


thanku&Regards,
Nagarjuna....
AnswerRe: hai Pin
N a v a n e e t h19-Jan-09 1:02
N a v a n e e t h19-Jan-09 1:02 
AnswerRe: hai Pin
Christian Graus19-Jan-09 2:04
protectorChristian Graus19-Jan-09 2:04 
QuestionProblem using http handler Pin
CrazyCoder2618-Jan-09 23:52
CrazyCoder2618-Jan-09 23:52 
AnswerRe: Problem using http handler Pin
N a v a n e e t h19-Jan-09 0:59
N a v a n e e t h19-Jan-09 0:59 
QuestionCustom Sorting for GridView Pin
sandhya1418-Jan-09 23:50
sandhya1418-Jan-09 23:50 
AnswerRe: Custom Sorting for GridView Pin
Herman<T>.Instance19-Jan-09 3:15
Herman<T>.Instance19-Jan-09 3:15 
GeneralRe: Custom Sorting for GridView Pin
sandhya1419-Jan-09 17:49
sandhya1419-Jan-09 17:49 
GeneralRe: Custom Sorting for GridView Pin
Herman<T>.Instance19-Jan-09 20:33
Herman<T>.Instance19-Jan-09 20:33 
GeneralRe: Custom Sorting for GridView Pin
sandhya1419-Jan-09 22:03
sandhya1419-Jan-09 22:03 
GeneralRe: Custom Sorting for GridView Pin
Herman<T>.Instance19-Jan-09 23:24
Herman<T>.Instance19-Jan-09 23:24 
GeneralRe: Custom Sorting for GridView Pin
sandhya1419-Jan-09 23:29
sandhya1419-Jan-09 23:29 
GeneralRe: Custom Sorting for GridView Pin
Herman<T>.Instance20-Jan-09 3:00
Herman<T>.Instance20-Jan-09 3:00 
GeneralRe: Custom Sorting for GridView Pin
sandhya1420-Jan-09 18:21
sandhya1420-Jan-09 18:21 
GeneralRe: Custom Sorting for GridView Pin
sandhya1420-Jan-09 19:32
sandhya1420-Jan-09 19:32 
GeneralRe: Custom Sorting for GridView Pin
Herman<T>.Instance20-Jan-09 20:20
Herman<T>.Instance20-Jan-09 20:20 
Questionplz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
ashafi45518-Jan-09 23:48
ashafi45518-Jan-09 23:48 
AnswerRe: plz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
Paddy Boyd19-Jan-09 0:08
Paddy Boyd19-Jan-09 0:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.