Click here to Skip to main content
15,889,651 members
Home / Discussions / C#
   

C#

 
QuestionCreating Custom Message using data from Excel Pin
MRMOSES28-Sep-17 19:57
MRMOSES28-Sep-17 19:57 
AnswerRe: Creating Custom Message using data from Excel Pin
OriginalGriff28-Sep-17 20:10
mveOriginalGriff28-Sep-17 20:10 
GeneralRe: Creating Custom Message using data from Excel Pin
MRMOSES28-Sep-17 20:23
MRMOSES28-Sep-17 20:23 
AnswerRe: Creating Custom Message using data from Excel Pin
OriginalGriff28-Sep-17 20:26
mveOriginalGriff28-Sep-17 20:26 
GeneralRe: Creating Custom Message using data from Excel Pin
MRMOSES28-Sep-17 21:41
MRMOSES28-Sep-17 21:41 
GeneralRe: Creating Custom Message using data from Excel Pin
OriginalGriff28-Sep-17 22:10
mveOriginalGriff28-Sep-17 22:10 
QuestionSending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 7:28
professionaljkirkerx28-Sep-17 7:28 
AnswerRe: Sending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 7:42
professionaljkirkerx28-Sep-17 7:42 
I have this working for now, but it seems overkill. endpointUrl is the URL and txn is the XML, rxn is the return string to deserialize.
var httpWebRequest = (HttpWebRequest)WebRequest.Create(endpointUrl + txn);
httpWebRequest.ContentType = "application/xml";
httpWebRequest.Method = "POST";

using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{<br />
    streamWriter.Write("");
    streamWriter.Flush();
    streamWriter.Close();
}

var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
    var result = streamReader.ReadToEnd();
    rxn = result.ToString();
}
If it ain't broke don't fix it

GeneralRe: Sending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 8:40
professionaljkirkerx28-Sep-17 8:40 
GeneralI got this now Pin
jkirkerx28-Sep-17 10:07
professionaljkirkerx28-Sep-17 10:07 
QuestionHow can I add a value for each pixel Pin
WI54M27-Sep-17 19:18
WI54M27-Sep-17 19:18 
AnswerRe: How can I add a value for each pixel Pin
OriginalGriff27-Sep-17 19:41
mveOriginalGriff27-Sep-17 19:41 
QuestionExporting the placeholder and its graph to excel sheet Pin
Atul Naik27-Sep-17 8:46
Atul Naik27-Sep-17 8:46 
Questionhow to change each pixel color Pin
WI54M27-Sep-17 1:46
WI54M27-Sep-17 1:46 
AnswerRe: how to change each pixel color Pin
Dave Kreskowiak27-Sep-17 1:47
mveDave Kreskowiak27-Sep-17 1:47 
GeneralRe: how to change each pixel color Pin
WI54M27-Sep-17 18:56
WI54M27-Sep-17 18:56 
AnswerRe: how to change each pixel color Pin
Eddy Vluggen27-Sep-17 1:52
professionalEddy Vluggen27-Sep-17 1:52 
SuggestionRe: how to change each pixel color Pin
Richard Deeming27-Sep-17 2:56
mveRichard Deeming27-Sep-17 2:56 
AnswerRe: how to change each pixel color Pin
Pete O'Hanlon27-Sep-17 3:13
mvePete O'Hanlon27-Sep-17 3:13 
Questiontest Pin
Marinel7727-Sep-17 0:29
Marinel7727-Sep-17 0:29 
AnswerRe: Need help with school projects Pin
Pete O'Hanlon27-Sep-17 0:33
mvePete O'Hanlon27-Sep-17 0:33 
QuestionRe: Need help with school projects Pin
Eddy Vluggen27-Sep-17 0:46
professionalEddy Vluggen27-Sep-17 0:46 
QuestionProblem debugging c# assembly (class library) Pin
PankajB26-Sep-17 18:24
PankajB26-Sep-17 18:24 
AnswerRe: Problem debugging c# assembly (class library) Pin
Eddy Vluggen26-Sep-17 23:13
professionalEddy Vluggen26-Sep-17 23:13 
QuestionC# .Select Method Pin
Bootzilla3326-Sep-17 10:18
Bootzilla3326-Sep-17 10:18 

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.