CFM Includes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derek

    #1

    CFM Includes

    We currently develop classic asp & asp.net and cold fusion
    mx web
    applications. Does anyone know if there is any way to
    include/call cfm pages inside a .net/asp web app?

    Just trying to avoid having to rebuild an app in .net if
    we do not have to. Any advice/instruction would be
    greatly appreciated.

    Derek M

  • Dino Chiesa [Microsoft]

    #2
    Re: CFM Includes

    It is possible to "call" external web pages from asp.net, regardless of
    whether those pages are in ASP.NET, PHP, CFM, JSP, whatever. It's all just
    HTTP.

    If the returned web page is formatted as XML, you can then parse the XML (or
    deserialize it).
    if it is HTML, you can display it or parse it,
    etc.

    It's up to you.

    for a GET, you would do something like this:
    string urlspec= "http://www.google.com" ;
    System.Net.WebR equest req= System.Net.WebR equest.Create(u rlspec);
    System.IO.Strea mReader sr = new System.IO.Strea mReader
    (req.GetRespons e().GetResponse Stream());
    result= sr.ReadToEnd ();

    The result would then hold the raw HTML. If you wanted to invoke a local
    page, you could use http://localhost/cfmdir/whatever.cfm as your urlspec.

    For a POST the code is somewhat different but the principle is the same.

    --
    Dino Chiesa
    Microsoft Developer Division
    d i n o c h @ o n l i n e . m i c r o s o f t . c o m


    "Derek" <derek.mendez@c harleston.af.mi l> wrote in message
    news:02c501c38e 84$1738ede0$a10 1280a@phx.gbl.. .[color=blue]
    > We currently develop classic asp & asp.net and cold fusion
    > mx web
    > applications. Does anyone know if there is any way to
    > include/call cfm pages inside a .net/asp web app?
    >
    > Just trying to avoid having to rebuild an app in .net if
    > we do not have to. Any advice/instruction would be
    > greatly appreciated.
    >
    > Derek M
    >[/color]


    Comment

    • Derek

      #3
      Re: CFM Includes

      That did it.

      Thanks for the quick response.

      v/r
      Derek[color=blue]
      >-----Original Message-----
      >It is possible to "call" external web pages from asp.net,[/color]
      regardless of[color=blue]
      >whether those pages are in ASP.NET, PHP, CFM, JSP,[/color]
      whatever. It's all just[color=blue]
      >HTTP.
      >
      >If the returned web page is formatted as XML, you can[/color]
      then parse the XML (or[color=blue]
      >deserialize it).
      >if it is HTML, you can display it or parse it,
      >etc.
      >
      >It's up to you.
      >
      >for a GET, you would do something like this:
      > string urlspec= "http://www.google.com" ;
      > System.Net.WebR equest req=[/color]
      System.Net.WebR equest.Create(u rlspec);[color=blue]
      > System.IO.Strea mReader sr = new[/color]
      System.IO.Strea mReader[color=blue]
      >(req.GetRespon se().GetRespons eStream());
      > result= sr.ReadToEnd ();
      >
      >The result would then hold the raw HTML. If you wanted[/color]
      to invoke a local[color=blue]
      >page, you could use http://localhost/cfmdir/whatever.cfm[/color]
      as your urlspec.[color=blue]
      >
      >For a POST the code is somewhat different but the[/color]
      principle is the same.[color=blue]
      >
      >--
      >Dino Chiesa
      >Microsoft Developer Division
      >d i n o c h @ o n l i n e . m i c r o s o f t . c o m
      >
      >
      >"Derek" <derek.mendez@c harleston.af.mi l> wrote in message
      >news:02c501c38 e84$1738ede0$a1 01280a@phx.gbl. ..[color=green]
      >> We currently develop classic asp & asp.net and cold[/color][/color]
      fusion[color=blue][color=green]
      >> mx web
      >> applications. Does anyone know if there is any way to
      >> include/call cfm pages inside a .net/asp web app?
      >>
      >> Just trying to avoid having to rebuild an app in .net if
      >> we do not have to. Any advice/instruction would be
      >> greatly appreciated.
      >>
      >> Derek M
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...