Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. accessing asp page from aspx page

accessing asp page from aspx page

Scheduled Pinned Locked Moved ASP.NET
helptoolsxmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neeraj Arora
    wrote on last edited by
    #1

    Hi buddies, I've an classic asp script which accepts an xml as parameter and after processing, it returns an xml, which was used by vb6. Now thing is, I want to do same thing from an aspx page. I was using MSXML2.XMLHTTP in vb6 but when i use this in aspx, it gives an error something like unknown protocol, when i call send method. I'm using .open("GET","URL",false) and then .send. Please anybody tell me, what is the problem and how i can do this with aspx. neerajkumar

    V 1 Reply Last reply
    0
    • N Neeraj Arora

      Hi buddies, I've an classic asp script which accepts an xml as parameter and after processing, it returns an xml, which was used by vb6. Now thing is, I want to do same thing from an aspx page. I was using MSXML2.XMLHTTP in vb6 but when i use this in aspx, it gives an error something like unknown protocol, when i call send method. I'm using .open("GET","URL",false) and then .send. Please anybody tell me, what is the problem and how i can do this with aspx. neerajkumar

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Neeraj, You can use System.Net.WebRequest (Managed Classes) for the same. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
      http://deepakvasudevan.blogspot.com/
      http://deepak.blogdrive.com/

      N 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        Neeraj, You can use System.Net.WebRequest (Managed Classes) for the same. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
        http://deepakvasudevan.blogspot.com/
        http://deepak.blogdrive.com/

        N Offline
        N Offline
        Neeraj Arora
        wrote on last edited by
        #3

        Thanks deepak, I've tried this. I'm using the same method. code is: Dim myRequest As WebRequest = WebRequest.Create(Server.MapPath("test.asp")) Dim myResponse As WebResponse = myRequest.GetResponse() Dim responseStream As System.IO.Stream = myResponse.GetResponseStream() Dim reader As New System.IO.StreamReader(responseStream) TextBox1.Text = reader.ReadToEnd() myResponse.Close() it shows me this result: <% response.write("Hello")%> and if I try to access remote page then it gives error that connection has lost. can you please help me? thanks again.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups