By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

win - web forms

P: n/a
i have written a windows app to check orders from our website however i need
to send info to a third party (for refund purposes) via a web page , how can
i inject the required data from the winform into a webform, this will also
be required to work from winform to webform as a unique refund id is posted
back

thanks in advance

Garnt
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Grant,

You will probably need for that the HTTP request/response class, however
than it comes, the way the (webserver) page is used makes how you have to
make your response (to see that, when you see the respond on the commandline
it is Get otherwise it is hopefully for you Post).

I never did what you ask actually so deeper I cannot help you in this
problem.

http://msdn.microsoft.com/library/de...classtopic.asp

However I hope this helps something?

Cor
Nov 21 '05 #2

P: n/a
Just to clarify Cor's answer a little.

You can use the HTTPWebRequest class to Post a form to the partner site. If
the partner site requires a login, you will first have to post to their
login page with your credentials, capture the cookies, and then post to the
actual form. The HTTPWebResponse is the class that retrieves the response
data, which, in all liklihood will include the HTML containing the refund
id. You will have to parse that id out of the surrounding HTML.

A fairly good article on this is located here:
http://www.codeproject.com/csharp/Ht...t_Response.asp
It is in C#. I hope that is not a problem. Note: you can take his code and
put it into a c# project in your environment, and then call it from your VB
app, if that helps.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"grant" <gs******@btopenworld.com> wrote in message
news:cr**********@sparta.btinternet.com...
i have written a windows app to check orders from our website however i need to send info to a third party (for refund purposes) via a web page , how can i inject the required data from the winform into a webform, this will also
be required to work from winform to webform as a unique refund id is posted back

thanks in advance

Garnt

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.