Welcome, Guest
  • Author Topic: XmlConnector to ASPX page  (Read 1510 times)

    jmcwatters

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    XmlConnector to ASPX page
    « on: 10/07/05, 06:06 »
    Hi,

    I'm trying to build a model using Flash MX Pro 2004, ASP.NET and an Access DB.

    I've been able to load data into my Flash ap, and now I'm trying to send changes made in a dataGrid back to an ASPX page to be parsed. I've been reading a lot of tutorials, but I haven't been able to find one that fits.
    I would like to know how to catch the result_packet sent by the XmlConnector in an ASPX page.
    I have my XmlConnector pointed to the page, but I haven't been able to grab the results_packet.
    I'm new to ASP.Net and I haven't been able to find the proper syntax to achieve my goal.
    If anyone has input on this, or the proper approach to take, I would be very greatful to hear from you.

    thank,

    - J

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: XmlConnector to ASPX page
    « Reply #1 on: 10/07/05, 06:36 »
    Hi jmcwatters, welcome to the Board!

    If you're building an XML object with your data in Flash, then you can pass along the XmlConnector and parse in aspx. The RDBMSResolver in conjunction with a dataset and datagrid build an XML Packet (named deltaPacket) that you can use in case you're not building your own. Again, you need to parse the XML object in aspx. About XML parsing in .Net, lock for tutorials in .Net related sites.

    Jorge

    jmcwatters

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: XmlConnector to ASPX page
    « Reply #2 on: 10/07/05, 06:53 »
    Hi Jorge,

    Thanks for your reply. I have been working at both ends of this problem, but I haven't been able to get them to meet.

    I have a working model for parsing the XML in asp.net. My problem is that I can't actually get the update_packet xml to the aspx page. I understand how to post the update_packet, using the parameters of the XmlConnector, but I don't know how to, a) recieve the xml, or b) load it for use in the aspx page.
    I assumed that it would be a fairly common task, but my research, both in Flash and ASP.Net haven't turned up solutions. I've been using code like;

    Dim xmlRead As XmlTextReader = New XmlTextReader (Request.Input)

    and

    Dim xmlRead As XmlTextReader = New XmlTextReader (Request.InputStream)

    but don't seem to be recieving.

    Again, if you have anymore input or direction on this problem, I would be greatful.

    - J

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: XmlConnector to ASPX page
    « Reply #3 on: 10/07/05, 07:22 »
    Phil have an example in reading/saving data using Access and asp: http://philflash.inway.fr/contactasp/contactasp.html (French, but not too difficult to understand)

    Jorge

    jmcwatters

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: XmlConnector to ASPX page
    « Reply #4 on: 10/07/05, 09:55 »
    hi Jorge

    Merci for the link, I'll take a look.
    It seems to me that examples using .Net are far and few between. Maybe I'll have to write one. ;)
    Thanks a lot for taking the time to reply.

    - J

    jmcwatters

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: XmlConnector to ASPX page
    « Reply #5 on: 10/12/05, 03:24 »
    Again, thanks for the help.
    This tutorial is written for asp and not ASP.NET, something I keep running into.
    If anyone has a .NET tutorial recieving an update_packet from FLASH, please share.

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: XmlConnector to ASPX page
    « Reply #6 on: 10/12/05, 03:37 »
    Moving from one to the other is not too difficult ... most of the old asp code works with .Net also

    Jorge