Questo funge in ASP, ma io voglio portarlo in aspx
Dim objXMLHTTP, StrURL
email="tuaemail@controllare.it"
StrURL="http://webservices.tiscali.com/EmailServices.asmx/IsValidEmail?email="&email
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", StrURL, false
objXMLHTTP.Send
risultato= CStr(objXMLHTTP.ResponseText)
if Instr(1,risultato, "true")>0 then
Response.Write ("email esistente")
else
Response.Write ("email non esistente")
end if
Set xml = Nothing
Allora ho provato con una cosa grezza del tipo
<%@Import Namespace="System.Net"%>
<SCRIPT language="VB" runat="server">
Sub Page_Load()
Dim objXMLHTTP as new webclient()
dim StrURL as string
dim email as string
dim risultato as string
email="tuaemail@controllare.it"
StrURL="http://webservices.tiscali.com/EmailServices.asmx/IsValidEmail?email="&email
objXMLHTTP.Open "GET", StrURL, false
risultato= CStr(objXMLHTTP.ResponseText)
if Instr(1,risultato, "true")>0 then
label1.text= "email esistente"
else
label1.text="email non esistente"
end if
End Sub
ma qui
objXMLHTTP.Open "GET", StrURL, false
non va. C'è qualcuno che mi aiuta? Grazie