send string from vb to aspx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patr0805
    New Member
    • Sep 2007
    • 48

    send string from vb to aspx

    Hi I have this problem that I want to send a string to a aspx site on my website from my local visual basic application and I would like it both ways.

    Can anyone help me:

    I ques it is something like
    dim a
    a = me.season("dsd" )
    in the web application.

    If there dosen't exists any quick code to do this like me.season then tell me.
  • trynt799799
    New Member
    • Jan 2008
    • 8

    #2
    if you want a quick way to send data to a website you an try something like this:

    Code:
    www.mypage.com/datareciver.aspx?data="MyString"
    
    
    then on the datareciver page:
    
    string data = Request["data"]
    <snipped>
    Last edited by Frinavale; Jan 22 '08, 09:34 PM. Reason: Link Removed

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by patr0805
      Hi I have this problem that I want to send a string to a aspx site on my website from my local visual basic application and I would like it both ways.

      Can anyone help me:

      I ques it is something like
      dim a
      a = me.season("dsd" )
      in the web application.

      If there dosen't exists any quick code to do this like me.season then tell me.
      There is no such thing as "season"... .
      Are you trying to use Session?

      You are going to have to have to create a common data store which will allow both your web application and desktop application to access the shared data.

      You can use a data database, or file, xml file.... or anything that gives permissions to both applications and allows them access to the information you need to share.

      You cannot use Session to do this. Sessions are used to identify a person by giving their Browser a cookie to identify them (in general use)....since this doesn't help you with your application, Sessions will be of no use to you.

      Hope this helps.

      -Frinny

      Comment

      • patr0805
        New Member
        • Sep 2007
        • 48

        #4
        if Dim a = Request("mode") if to request isent there a method to send a string back
        to the application?

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by patr0805
          if Dim a = Request("mode") if to request isent there a method to send a string back
          to the application?
          Sorry there is not.
          You can store the string in a database so that both applications can retrieve and use it.

          Your ASPX web application is meant to run on a web server and serve information to users using HTML web pages.

          Your desktop application is meant to run on a client's machine.

          Web pages just display information, they do not have the rights to do anything to the client's machine...they do not have the rights to communicate with your desktop application.

          I do not understand why the web application has anything to do with the desktop application.

          Could you please explain what you are trying to do in more detail.

          -Frinny

          Comment

          • patr0805
            New Member
            • Sep 2007
            • 48

            #6
            the application have to connect the aspx page so that the aspx page can save the string to a file and the an another computer have to retrive it like multiplayer connection over an aspx page

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by patr0805
              the application have to connect the aspx page so that the aspx page can save the string to a file and the an another computer have to retrive it like multiplayer connection over an aspx page
              I'm sorry but you're going to have to explain what a "multiplaye r connection" is.
              Are you talking about a game?
              Played through an aspx page?
              Or a desktop application?


              I'm still confused.
              Could you please try to explain the problem again and maybe even post some code snippets to help explain what you are trying to do...
              What have you tried so far?

              -Frinny

              Comment

              • patr0805
                New Member
                • Sep 2007
                • 48

                #8
                its a dektop application witch have to send a string alone with a season number to an aspx and then the desktop application on the other computer will retrived the string by the same season number as the sender.

                Its a multiplayer game functioning over an aspx page for faster sending.

                I only want to know if the aspx page can send a string to a dekstop application web
                browser control.

                Comment

                • patr0805
                  New Member
                  • Sep 2007
                  • 48

                  #9
                  maybe there is a way to see the web site title from the desktop application.

                  Comment

                  • Frinavale
                    Recognized Expert Expert
                    • Oct 2006
                    • 9749

                    #10
                    Originally posted by patr0805
                    its a dektop application witch have to send a string alone with a season number to an aspx and then the desktop application on the other computer will retrived the string by the same season number as the sender.

                    Its a multiplayer game functioning over an aspx page for faster sending.

                    I only want to know if the aspx page can send a string to a dekstop application web
                    browser control.
                    Sorry there's no way that the aspx page can send a string to the desktop application.

                    Consider using a web service instead...combi ned with a timer in the desktop application that will retrieve the string (if it's there) from the web service after a certain time period has passed.

                    -Frinny

                    Comment

                    Working...