asp.net - How to execute a URL without running in webbrowser on button click? -


after clicking button in aspx page have execute url

http://127.0.0.1/phptest/sendmail.php?id=+@username 

using vb.net. @username comes textbox.

make http request if need call url vbscript:

username = ... url = "http://127.0.0.1/phptest/sendmail.php?id=+@" & username  set req = createobject("msxml2.xmlhttp.6.0") req.open "get", url, false req.send  if req.status = 200   'request successful else   'request failed end if 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -