Click here to Skip to main content
15,915,603 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: session.clear and session.abandon Pin
Urs Enzler5-Aug-07 23:38
Urs Enzler5-Aug-07 23:38 
Questionposting and getting the data using asp.net 2.0 Pin
asrabanu5-Aug-07 20:40
asrabanu5-Aug-07 20:40 
AnswerRe: posting and getting the data using asp.net 2.0 Pin
Malcolm Smart5-Aug-07 20:53
Malcolm Smart5-Aug-07 20:53 
GeneralRe: posting and getting the data using asp.net 2.0 Pin
Pete O'Hanlon6-Aug-07 3:17
mvePete O'Hanlon6-Aug-07 3:17 
AnswerRe: posting and getting the data using asp.net 2.0 Pin
Malcolm Smart5-Aug-07 21:22
Malcolm Smart5-Aug-07 21:22 
GeneralRe: posting and getting the data using asp.net 2.0 Pin
asrabanu5-Aug-07 21:25
asrabanu5-Aug-07 21:25 
GeneralRe: posting and getting the data using asp.net 2.0 Pin
Malcolm Smart5-Aug-07 21:30
Malcolm Smart5-Aug-07 21:30 
GeneralRe: posting and getting the data using asp.net 2.0 Pin
asrabanu9-Aug-07 21:10
asrabanu9-Aug-07 21:10 
hi iam posting you the code. plz tell me how can i do this.
in the postpage we are posting str
Public Function postpage(ByVal str As String) As String
Try
Dim xml As MSXML2.XMLHTTP
xml = New MSXML2.XMLHTTP
Dim iTimeTaken As Long
xml.open("post", str, True)
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
If str1 = "" Then
xml.send("")
Else
xml.send(str1)
End If
tmstart = Now
Do
tmcurr = Now
iTimeTaken = CLng(DateDiff("s", tmstart, tmcurr))
Loop While xml.readyState <> 4
If xml.readyState = 4 Then
postpage = xml.responseText
Else
postpage = ""
End If
xml = Nothing
Catch ex As Exception
postpage = ""
End Try
End Function

this is for getting the page
Public Function getpage(ByVal str As String) As String
Try
Dim xml As MSXML2.XMLHTTP
Dim iTimeTaken As Long
Dim getpage1 As String = ""

If str1 <> "" Then
str = str & "?" & str1
End If
xml = New MSXML2.XMLHTTP
xml.open("GET", str, True)
xml.send(str)
tmstart = Now
Do
tmcurr = Now
iTimeTaken = CInt(DateDiff("s", tmstart, tmcurr))
Loop While xml.readyState <> 4
If xml.readyState = 4 Then
getpage = xml.responseText
Else
getpage = ""
End If
xml = Nothing
Return getpage
Catch ex As Exception
getpage = ""
End Try
End Function

calling this fucntions:
function main()
dim str as string,src as string
str="www.yahoo.com"
str1=postpage(str)

if str1 <> "" then
src1=getpage(str)
end if

end function


this is my code
now pls tell me where it is wrong.
Questionmodule and assembly Pin
Sonia Gupta5-Aug-07 20:38
Sonia Gupta5-Aug-07 20:38 
AnswerRe: module and assembly Pin
Sandeep Akhare5-Aug-07 20:53
Sandeep Akhare5-Aug-07 20:53 
QuestionGeneric Type Pin
sulabh20205-Aug-07 20:23
sulabh20205-Aug-07 20:23 
Questionautentication poblem Pin
Sonia Gupta5-Aug-07 20:15
Sonia Gupta5-Aug-07 20:15 
AnswerRe: autentication poblem Pin
Malcolm Smart5-Aug-07 20:57
Malcolm Smart5-Aug-07 20:57 
GeneralRe: autentication poblem Pin
Sonia Gupta5-Aug-07 21:07
Sonia Gupta5-Aug-07 21:07 
GeneralRe: autentication poblem Pin
Malcolm Smart5-Aug-07 21:21
Malcolm Smart5-Aug-07 21:21 
GeneralRe: autentication poblem Pin
Sonia Gupta5-Aug-07 21:25
Sonia Gupta5-Aug-07 21:25 
GeneralRe: autentication poblem Pin
Malcolm Smart5-Aug-07 21:38
Malcolm Smart5-Aug-07 21:38 
Questionproblem is how to create a .dll file Pin
ballameharmurali5-Aug-07 20:01
ballameharmurali5-Aug-07 20:01 
AnswerRe: problem is how to create a .dll file Pin
Sandeep Akhare5-Aug-07 20:12
Sandeep Akhare5-Aug-07 20:12 
AnswerRe: problem is how to create a .dll file Pin
Aloysius Jegan5-Aug-07 20:59
Aloysius Jegan5-Aug-07 20:59 
AnswerRe: problem is how to create a .dll file Pin
koolprasad20035-Aug-07 23:56
professionalkoolprasad20035-Aug-07 23:56 
QuestionVideo hosting website Pin
Jats_4ru5-Aug-07 19:40
Jats_4ru5-Aug-07 19:40 
AnswerRe: Video hosting website Pin
Malcolm Smart5-Aug-07 21:05
Malcolm Smart5-Aug-07 21:05 
GeneralRe: Video hosting website Pin
Jats_4ru5-Aug-07 22:41
Jats_4ru5-Aug-07 22:41 
GeneralRe: Video hosting website Pin
Malcolm Smart5-Aug-07 22:56
Malcolm Smart5-Aug-07 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.