Example code for posting data to ASP.NET?

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

    #1

    Example code for posting data to ASP.NET?

    I have seen some examples of client-side code inside an ActiveX
    control posting data back to the server in ASP. I have tried the code
    and it works well. However, I need to see how this is done using
    ASP.NET & VB.NET 2002 without requiring the .NET Framework to be
    installed on the client-side browser.

    I am writing a web-based system in ASP.NET & VB.NET 2002 that has to
    use a VB6 ActiveX control on the client-side to automate Microsoft
    Office products on the client-side and the same ActiveX control must
    pass data to the server such as the version numbers of the Office
    products that are installed. I am only interested in knowing how to
    post back data from the ActiveX control, not how to automate Office.
    Methods which I have seen working so far used Microsoft XML 3 with
    code such as

    XMLHTTP.Open "POST", sPage, False
    XMLHTTP.setRequ estHeader "PICNAME", "MyPic"

    I am only interested in sending text data strings to the server,
    probably up to 10. I need to see how the data is received in ASP.NET
    2002.

    Can anyone point me at example code? I know it can be done but I need
    to see examples because the explanations of how it is done just fly
    over my head!

    Regards

    Allan Cammish.
  • John Timney \(Microsoft MVP\)

    #2
    Re: Example code for posting data to ASP.NET?

    In theory, what you do client side has not changed, so your control for
    posting data to an ASP page could just as easily post data to an ASPX page.
    The same request objects exist in asp.net for disseminating the posted data
    as exist in asp, you likely only need to translate the server side part of
    the example you already have from asp to asp.net.

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_auth or_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_autho r_plug>
    ----------------------------------------------

    "Allan Cammish" <allancammish@h otmail.com> wrote in message
    news:f95ff8c9.0 311131332.64f03 e74@posting.goo gle.com...[color=blue]
    > I have seen some examples of client-side code inside an ActiveX
    > control posting data back to the server in ASP. I have tried the code
    > and it works well. However, I need to see how this is done using
    > ASP.NET & VB.NET 2002 without requiring the .NET Framework to be
    > installed on the client-side browser.
    >
    > I am writing a web-based system in ASP.NET & VB.NET 2002 that has to
    > use a VB6 ActiveX control on the client-side to automate Microsoft
    > Office products on the client-side and the same ActiveX control must
    > pass data to the server such as the version numbers of the Office
    > products that are installed. I am only interested in knowing how to
    > post back data from the ActiveX control, not how to automate Office.
    > Methods which I have seen working so far used Microsoft XML 3 with
    > code such as
    >
    > XMLHTTP.Open "POST", sPage, False
    > XMLHTTP.setRequ estHeader "PICNAME", "MyPic"
    >
    > I am only interested in sending text data strings to the server,
    > probably up to 10. I need to see how the data is received in ASP.NET
    > 2002.
    >
    > Can anyone point me at example code? I know it can be done but I need
    > to see examples because the explanations of how it is done just fly
    > over my head!
    >
    > Regards
    >
    > Allan Cammish.[/color]


    Comment

    Working...