Click here to Skip to main content
15,919,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Data Text Formatting asp.net 2.0 Pin
Sherin Iranimose22-May-07 19:26
Sherin Iranimose22-May-07 19:26 
QuestionData Text Formatting asp.net 2.0 Pin
Jay_se22-May-07 21:06
Jay_se22-May-07 21:06 
QuestionHow to send grid view data into a excel file? Pin
here2learn22-May-07 19:00
here2learn22-May-07 19:00 
AnswerRe: How to send grid view data into a excel file? Pin
Jagadeesh Jupalli22-May-07 19:39
Jagadeesh Jupalli22-May-07 19:39 
AnswerRe: How to send grid view data into a excel file? Pin
varshavmane22-May-07 19:47
varshavmane22-May-07 19:47 
QuestionApplication data caching on a web farm Pin
kaban15622-May-07 18:58
kaban15622-May-07 18:58 
AnswerRe: Application data caching on a web farm Pin
KarasukoJ23-May-07 5:28
KarasukoJ23-May-07 5:28 
QuestionProcess in Asp.net C# Pin
AnhTin22-May-07 18:54
AnhTin22-May-07 18:54 
hi all

i have file pg_dump.exe Export file
When i run cmd to this folder contain this file. After that i give argument is
pg_dump -i -h 127.0.0.1 -p 5432 -U postgres -d vietnamairlines -v " + '"' + @"C:\abc.backup" + '"';
click Enter
it show one Line Password:
i give my password and click Enter it Export my file to me.

I want implement this command on ASP.net (C# 2.0).
i have command :

string strPathFile = Server.MapPath(@"../cmd/pg_dump.exe");
MyProc.StartInfo.FileName = strPathFile;
MyProc.StartInfo.UseShellExecute = false;
MyProc.StartInfo.RedirectStandardError = false;
MyProc.StartInfo.RedirectStandardInput = false;
MyProc.StartInfo.RedirectStandardOutput = false;
MyProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

MyProc.StartInfo.Arguments = @" -i -h 127.0.0.1 -p 5432 -U postgres -d vietnamairlines -v " + '"' + @"C:\abc.backup" + '"';

MyProc.StartInfo.CreateNoWindow = true;
MyProc.StartInfo.Verb = "save";
MyProc.Start();
MyProc.WaitForExit();

How can i give Password to this Process ????
Some people give me this Line code put behind MyProc.Start();
MyProc.StandardInput.WriteLine("my password");
But it still not Ok !
Some body tell me ?????? Confused | :confused:
AnswerRe: Process in Asp.net C# Pin
kubben23-May-07 7:29
kubben23-May-07 7:29 
AnswerRe: Process in Asp.net C# Pin
danimar ribeiro18-Dec-09 5:02
danimar ribeiro18-Dec-09 5:02 
QuestionUsing AJAX in OPERA Pin
248912822-May-07 18:50
248912822-May-07 18:50 
AnswerRe: Using AJAX in OPERA Pin
Christian Graus22-May-07 20:07
protectorChristian Graus22-May-07 20:07 
AnswerRe: Using AJAX in OPERA Pin
szukuro22-May-07 22:30
szukuro22-May-07 22:30 
QuestionOpening attachments in textbox Pin
Rajiya22-May-07 18:17
Rajiya22-May-07 18:17 
AnswerRe: Opening attachments in textbox Pin
N a v a n e e t h22-May-07 20:17
N a v a n e e t h22-May-07 20:17 
GeneralRe: Opening attachments in textbox Pin
Rajiya22-May-07 20:51
Rajiya22-May-07 20:51 
QuestionAdd some more fields for future based..., Pin
Member 387988122-May-07 18:08
Member 387988122-May-07 18:08 
AnswerRe: Add some more fields for future based..., Pin
Sherin Iranimose22-May-07 19:09
Sherin Iranimose22-May-07 19:09 
QuestionHow to time splash screens? Pin
jazz morgan22-May-07 18:03
jazz morgan22-May-07 18:03 
AnswerRe: How to time splash screens? Pin
Christian Graus22-May-07 20:08
protectorChristian Graus22-May-07 20:08 
Questioninsert & play flash file Pin
shufun22-May-07 16:40
shufun22-May-07 16:40 
AnswerRe: insert & play flash file Pin
sra2223-May-07 0:35
sra2223-May-07 0:35 
Questionnewbie aspx.vb question Pin
JimHouse22-May-07 13:27
JimHouse22-May-07 13:27 
AnswerRe: newbie aspx.vb question Pin
Mark Greenwood22-May-07 13:56
Mark Greenwood22-May-07 13:56 
AnswerRe: newbie aspx.vb question Pin
Not Active22-May-07 14:31
mentorNot Active22-May-07 14:31 

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.