G
Guest
Hi All,
i need to read xml data from another website in asp.net. i have written some
code in classic asp that's working but i dont know how to write code for
asp.net.
i have written follwoing code in classic asp.
function NewZawyaSessionId
Dim strZSessionId, strURL, strUserName, strPass, strContent
Dim P,N
strUserName="user"
strPass="password"
strURL="https://www.zawya.com/clientsessionid/default.cfm?username=" &
strUserName & "&password=" & strPass
set xmlhttp=Server.CreateObject("Microsoft.XMLHTTP")
call xmlhttp.Open("POST", strURL, false)
on error resume next
call xmlhttp.Send("")
if err.number<>0 then
strContent="0"
else
strContent= xmlhttp.responseText
end if
end function
any help will be greatly appriciated
Thanks
Shahid
i need to read xml data from another website in asp.net. i have written some
code in classic asp that's working but i dont know how to write code for
asp.net.
i have written follwoing code in classic asp.
function NewZawyaSessionId
Dim strZSessionId, strURL, strUserName, strPass, strContent
Dim P,N
strUserName="user"
strPass="password"
strURL="https://www.zawya.com/clientsessionid/default.cfm?username=" &
strUserName & "&password=" & strPass
set xmlhttp=Server.CreateObject("Microsoft.XMLHTTP")
call xmlhttp.Open("POST", strURL, false)
on error resume next
call xmlhttp.Send("")
if err.number<>0 then
strContent="0"
else
strContent= xmlhttp.responseText
end if
end function
any help will be greatly appriciated
Thanks
Shahid