Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encoding xmldata

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
I want to send some data from a VB app (vb.net 2005)to a website. The data is in XML format and I get error 500 when I send it in a quesrystring. Im trying to find the correct way to encode the request string.
Can someone point me in the right direction

Thanks

Code:
[URL unfurl="true"]http://www.myite.com/datain.aspx?Data?<id>22</id><fname>Jack</Fname><lastname>Giant</lastname>[/URL]
 
Code:
[URL unfurl="true"]http://www.myite.com/datain.aspx?ID=22&fname=Jack&lname=Giant[/URL]

Then you just use this in the page to request it.
Code:
If Not (Request.Params("ID") Is Nothing) Then
  Select Case CINT(Request.Params("ID"))
    Case 0
      'whatever here
    Case else
      'whatever here
  End Select
End If
 
desse,

HI. Thanks for your response. I want to stay with the XML for now. I can use a replace function to send the data and then add the tags back in later but I was trying to find a more conventional way to do it.

Thanks


Dan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top