Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView Pin
stancrm10-Jul-09 2:11
stancrm10-Jul-09 2:11 
GeneralRe: DataGridView Pin
sanforjackass10-Jul-09 2:18
sanforjackass10-Jul-09 2:18 
QuestionA simple event that takes no arguments Pin
Tobias Norlund10-Jul-09 1:27
Tobias Norlund10-Jul-09 1:27 
AnswerRe: A simple event that takes no arguments Pin
stancrm10-Jul-09 1:32
stancrm10-Jul-09 1:32 
AnswerRe: A simple event that takes no arguments Pin
Luc Pattyn10-Jul-09 1:58
sitebuilderLuc Pattyn10-Jul-09 1:58 
GeneralRe: A simple event that takes no arguments Pin
Tobias Norlund10-Jul-09 2:17
Tobias Norlund10-Jul-09 2:17 
GeneralRe: A simple event that takes no arguments Pin
Luc Pattyn10-Jul-09 7:40
sitebuilderLuc Pattyn10-Jul-09 7:40 
QuestionXML Post Pin
kibromg10-Jul-09 1:06
kibromg10-Jul-09 1:06 
Hi all,

I have the following
sda.fill(ds);
string xmlDs = ds.GetXml();

WebRequest req = null;
WebResponse rsp = null;


try
{
string fileName = xmlDs;
string uri = "http://www.website.com/Pages/CongratulationsListener.aspx";
req = WebRequest.Create(uri);
//req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy
req.Method = "POST"; // Post method
req.ContentType = "text/xml"; // content type
// Wrap the request stream with a text-based writer
StreamWriter writer = new StreamWriter(req.GetRequestStream());
// Write the XML text into the stream
writer.WriteLine(fileName);
writer.Close();
// Send the data to the webserver
// SendRequest(uri);
rsp = req.GetResponse();
rsp.Close();

}
catch (WebException webEx)
{

}
catch (Exception ex)
{

}
finally
{
if (req != null) req.GetRequestStream().Close();
if (rsp != null) rsp.GetResponseStream().Close();

}
My listner page (CongratulationsListener.aspx) doesnt seem to get any Xml data?
Can any one advice please?

Thank you in advance.
QuestionHello.. Pin
mjawadkhatri10-Jul-09 1:02
mjawadkhatri10-Jul-09 1:02 
AnswerRe: Hello.. Pin
dan!sh 10-Jul-09 1:05
professional dan!sh 10-Jul-09 1:05 
GeneralRe: Hello.. Pin
mjawadkhatri10-Jul-09 1:08
mjawadkhatri10-Jul-09 1:08 
GeneralRe: Hello.. Pin
J4amieC10-Jul-09 1:15
J4amieC10-Jul-09 1:15 
GeneralRe: Hello.. Pin
mjawadkhatri10-Jul-09 1:23
mjawadkhatri10-Jul-09 1:23 
GeneralRe: Hello.. Pin
Henry Minute10-Jul-09 1:28
Henry Minute10-Jul-09 1:28 
GeneralRe: Hello.. Pin
dan!sh 10-Jul-09 1:18
professional dan!sh 10-Jul-09 1:18 
GeneralRe: Hello.. Pin
Hum Dum10-Jul-09 1:20
Hum Dum10-Jul-09 1:20 
GeneralRe: Hello.. Pin
Vasudevan Deepak Kumar10-Jul-09 2:02
Vasudevan Deepak Kumar10-Jul-09 2:02 
QuestionGenerics and Arrays Help Please! Pin
James612810-Jul-09 0:49
James612810-Jul-09 0:49 
AnswerRe: Generics and Arrays Help Please! Pin
DoctorMick10-Jul-09 0:55
DoctorMick10-Jul-09 0:55 
GeneralRe: Generics and Arrays Help Please! Pin
James612810-Jul-09 1:16
James612810-Jul-09 1:16 
Questionhow do i use sendkeys.send Pin
Vivek Vijayan10-Jul-09 0:45
Vivek Vijayan10-Jul-09 0:45 
AnswerRe: how do i use sendkeys.send Pin
dan!sh 10-Jul-09 1:00
professional dan!sh 10-Jul-09 1:00 
QuestionPlace cursor at the end of combo box text Pin
pp.p10-Jul-09 0:35
pp.p10-Jul-09 0:35 
AnswerRe: Place cursor at the end of combo box text Pin
Nagy Vilmos10-Jul-09 0:43
professionalNagy Vilmos10-Jul-09 0:43 
QuestionSOAP Messages - Intercepting and redirecting the HTTP call to a remoting server Pin
MrEyes10-Jul-09 0:21
MrEyes10-Jul-09 0:21 

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.