Click here to Skip to main content
16,010,918 members
Home / Discussions / C#
   

C#

 
GeneralWhat size is correct size? [modified] Pin
Mohammad Dayyan23-May-08 16:04
Mohammad Dayyan23-May-08 16:04 
GeneralRe: What size is correct size? Pin
radialronnie24-May-08 4:59
radialronnie24-May-08 4:59 
GeneralRe: What size is correct size? Pin
Mohammad Dayyan24-May-08 5:22
Mohammad Dayyan24-May-08 5:22 
GeneralRe: What size is correct size? Pin
radialronnie24-May-08 5:24
radialronnie24-May-08 5:24 
QuestionWhat's the meaning of @ character in Regular expression pattern ? Pin
Mohammad Dayyan19-May-08 11:22
Mohammad Dayyan19-May-08 11:22 
AnswerRe: What's the meaning of @ character in Regular expression pattern ? Pin
Matthew Butler19-May-08 11:27
Matthew Butler19-May-08 11:27 
GeneralRe: What's the meaning of @ character in Regular expression pattern ? Pin
Mohammad Dayyan19-May-08 11:30
Mohammad Dayyan19-May-08 11:30 
QuestionC# and XML:URGENT Pin
kolucoms619-May-08 10:43
kolucoms619-May-08 10:43 
The following is a sample HTTP POST request and response

POST /Suppliers/WebServices/InsertLeads.asmx/InsertLead HTTP/1.1
Host: apps.abcsite.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length



SupplierID=string&SupplierPassword=string&FirstName=string&LastName=string&EmailAddress=string&CoAppFirstName=string&CoAppLastName=string&Address=string&City=string&State=string&PostalCode=string&HomePhone=string&WorkPhone=string&WorkPhoneExt=string&CurrentEmployer=string&YearsThere=string&Income=string&BestCallTime=string&OriginalLeadDate=string&ExternalLeadID=string&IPAddress=string&ExtraFields=string


I want the below code to return me in HTML format instead of XML.



HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length


<returnmessage xmlns="http://www.abcsite.com/">
<errorname>string
<errordescription>string
<leadid>string
<clientavailable>boolean










Here is one Instruction but I am asked to use this for C# , which I do not know :



This example assumes you have basic knowledge of how to use Visual Studio and the .NET Framework. In this example, the web reference to the ABCSite web service has already been added under a single folder called ABCSite. You would typically use this implementation when posting real time leads to our system via a form on one of your websites. This example is written in C#.


ABCSite.InsertLeads dpRealTimeWS = new ABCSite.InsertLeads();


ABCSite.returnMessage dpReturnWS = new ABCSite.returnMessage();


dpReturnWS = dpRealTimeWS.InsertLead(

Request.Form["txtSupplierID"],Request.Form["txtSupplierPassword"], Request.Form["txtFirstName"], Request.Form["txtLastName"],

Request.Form["txtCoAppFirstName"], Request.Form["txtCoAppLastName"],

Request.Form["txtCity"], Request.Form["txtState"], Request.Form["txtPostalCode"], Request.Form["txtHomePhone"], Request.Form["txtWorkPhone"], Request.Form["txtWorkPhoneExt"], Request.Form["txtBestCallTime"], Request.Form["txtEmailAddress"], Request.Form["txtOriginalLeadDate"],Request.Form["txtExternalLeadID"], Request.Form["txtIPAddress"], Request.Form["txtExtraFields"]);


lblWSResponse.Text = dpReturnWS.ErrorName + " " + dpReturnWS.ErrorDescription;
AnswerRe: C# and XML:URGENT Pin
#realJSOP19-May-08 10:50
professional#realJSOP19-May-08 10:50 
Questionnormal FTP transfer? [modified] Pin
mahraja19-May-08 9:58
mahraja19-May-08 9:58 
AnswerRe: normal FTP transfer? Pin
Christian Graus19-May-08 10:08
protectorChristian Graus19-May-08 10:08 
AnswerRe: normal FTP transfer? Pin
Ed.Poore19-May-08 10:44
Ed.Poore19-May-08 10:44 
GeneralRe: normal FTP transfer? Pin
mahraja19-May-08 10:59
mahraja19-May-08 10:59 
GeneralRe: normal FTP transfer? Pin
Ed.Poore19-May-08 11:01
Ed.Poore19-May-08 11:01 
GeneralRe: normal FTP transfer? Pin
mahraja19-May-08 11:23
mahraja19-May-08 11:23 
GeneralRe: normal FTP transfer? Pin
Ed.Poore19-May-08 11:56
Ed.Poore19-May-08 11:56 
GeneralRe: normal FTP transfer? Pin
The Nightcoder21-May-08 13:50
The Nightcoder21-May-08 13:50 
QuestionJust checking if am on the right track with my code Pin
Angelinna19-May-08 9:11
Angelinna19-May-08 9:11 
AnswerCP Ignore Pin
leckey19-May-08 9:33
leckey19-May-08 9:33 
GeneralRe: CP Ignore Pin
DaveyM6919-May-08 9:45
professionalDaveyM6919-May-08 9:45 
AnswerRe: Just checking if am on the right track with my code Pin
DaveyM6919-May-08 9:43
professionalDaveyM6919-May-08 9:43 
AnswerRe: Just checking if am on the right track with my code Pin
#realJSOP19-May-08 10:04
professional#realJSOP19-May-08 10:04 
GeneralRe: Just checking if am on the right track with my code Pin
Angelinna19-May-08 12:20
Angelinna19-May-08 12:20 
QuestionInheritance of class properties Pin
redivider19-May-08 8:48
redivider19-May-08 8:48 
AnswerRe: Inheritance of class properties Pin
Gareth H19-May-08 9:37
Gareth H19-May-08 9:37 

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.