Asynchronous web request

R

rolfejr

I am pretty new to asp.net still - I am looking for a way to perform an
asynchronous web request to another page in asp.net with vb.
Basically, a user hits a page, the page gets the ip address of the user
(request.userHostAddress), then it sends that to another page to
process the IP address, perform a reverse DNS lookup, and send an email
(using the MailMessage object in the system.web.mail namespace) with
the host name in the email. I want to send it to another page because
I don't want the initial page to wait for the dns resolution to happen.

I don't even need results returned from the other page, I just need it
to process the ip and send the email. I've toyed around a bit with
request.beginGetResponse, but I've only seen examples with C# and I'm
not savvy enough to translate that to VB. If anyone has an example of
using the beginGetResponse or another method that would accomplish this
in VB, I would greatly appreciate it!
 
A

Alvin Bruney [MVP]

You can take those samples and run them thru instantC#. They have a great
product that does the translation for you and you can use the trail version
for these small snippets (less than 100 lines of code converted).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top