Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: Still locked in first TextBox Pin
S. Senthil Kumar15-Oct-05 21:04
S. Senthil Kumar15-Oct-05 21:04 
QuestionThis problem again Pin
snouto15-Oct-05 5:16
snouto15-Oct-05 5:16 
AnswerRe: This problem again Pin
Daniel Grunwald15-Oct-05 5:29
Daniel Grunwald15-Oct-05 5:29 
GeneralRe: This problem again Pin
Guffa15-Oct-05 5:56
Guffa15-Oct-05 5:56 
QuestionControl with Wizard Pin
acastano15-Oct-05 5:09
acastano15-Oct-05 5:09 
QuestionCapture Mouse Event in a USERCONTROL at Design Time Pin
acastano15-Oct-05 4:58
acastano15-Oct-05 4:58 
Questionopening webpage with post data? Pin
Afief15-Oct-05 4:50
Afief15-Oct-05 4:50 
AnswerRe: opening webpage with post data? Pin
Rob Philpott15-Oct-05 11:39
Rob Philpott15-Oct-05 11:39 
Hi Afief,

I'm not sure if I'm understanding you correctly, and whether you actually want to open a browser window to display the page, or to programmatically receive the content of a page as a result of a POST.

If it's the latter try something similar to below (untested) which POSTS a string to a web-page and captures the response also as a string:

static string Post(string url, string wordToPost)
{
// convert the word to post to a byte array
byte[] postData = new System.Text.ASCIIEncoding().GetBytes(wordToPost);

// create a web request
System.Net.WebRequest request = System.Net.WebRequest.Create(url);

// verb is POST
request.Method = "POST";

// add the post data to this request
System.IO.Stream postStream = request.GetRequestStream();
postStream.Write(postData, 0, postData.Length);
postStream.Close();

// send the request and collect the response
System.Net.WebResponse response = request.GetResponse();

// now read from the response stream the output
System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream());
string result = reader.ReadToEnd();

// tidy up
reader.Close();
response.Close();

// and return the content
return result;
}

Rgds,
Rob Philpott
QuestionKeep aspect ratio when drawing rectangle Pin
Gulfraz Khan15-Oct-05 3:52
Gulfraz Khan15-Oct-05 3:52 
AnswerRe: Keep aspect ratio when drawing rectangle Pin
Afief15-Oct-05 6:09
Afief15-Oct-05 6:09 
GeneralRe: Keep aspect ratio when drawing rectangle Pin
Gulfraz Khan17-Oct-05 4:28
Gulfraz Khan17-Oct-05 4:28 
QuestionRegex simple question Pin
matthias s.15-Oct-05 3:29
matthias s.15-Oct-05 3:29 
AnswerRe: Regex simple question Pin
Daniel Grunwald15-Oct-05 3:40
Daniel Grunwald15-Oct-05 3:40 
GeneralRe: Regex simple question Pin
matthias s.15-Oct-05 3:44
matthias s.15-Oct-05 3:44 
QuestionMake Skin For C# Form Pin
raed15-Oct-05 1:14
raed15-Oct-05 1:14 
QuestionControl for live video display on windows form Pin
varmag15-Oct-05 0:44
varmag15-Oct-05 0:44 
QuestionPlotting set of points on a windows form Pin
ilkeru8415-Oct-05 0:24
ilkeru8415-Oct-05 0:24 
AnswerRe: Plotting set of points on a windows form Pin
Guffa15-Oct-05 4:45
Guffa15-Oct-05 4:45 
Questionusing C1TrueDBGrid Pin
deep714-Oct-05 23:59
deep714-Oct-05 23:59 
QuestionImagelist transparency bug Pin
g00fyman14-Oct-05 23:55
g00fyman14-Oct-05 23:55 
Questionsearch for files Pin
Mridang Agarwalla14-Oct-05 22:57
Mridang Agarwalla14-Oct-05 22:57 
AnswerRe: search for files Pin
Rob Philpott15-Oct-05 8:12
Rob Philpott15-Oct-05 8:12 
QuestionI can't convert a var string to a var int Pin
tinh cau14-Oct-05 21:32
tinh cau14-Oct-05 21:32 
AnswerRe: I can't convert a var string to a var int Pin
Guffa14-Oct-05 22:02
Guffa14-Oct-05 22:02 
AnswerRe: I can't convert a var string to a var int Pin
Andrew Kirillov14-Oct-05 22:05
Andrew Kirillov14-Oct-05 22:05 

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.