how to pass a value from one application to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gracepaul
    New Member
    • Jul 2008
    • 28

    how to pass a value from one application to another

    hi

    i have to pass a value in the textbox in one application to another one in run time. Two application resides in the same domain. how can i do it?

    Thanks and regards

    GRACE
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    is it a windows form application?
    if yes then create a static class and have a static field... and update the field on form1 and then you can access it from form 2...
    in case you intent do something else plz clarify... and provide a sample code..

    Comment

    • gracepaul
      New Member
      • Jul 2008
      • 28

      #3
      Originally posted by dirtbag
      is it a windows form application?
      if yes then create a static class and have a static field... and update the field on form1 and then you can access it from form 2...
      in case you intent do something else plz clarify... and provide a sample code..
      Actually the two applications are web applications done in c# and the two are hosted in the same domain by using two folders . I want to pass the value of a text box in one application to another application. There is an html page for connecting these two applications ..
      I have a login page and then redirected to the html page . from that html page by using a link button i am calling anither application.So i want to pass the value of the taxt box in the login page to the application which is called by using the html page.

      Please reply as early as possible.

      Thanks and regards
      Grace

      Comment

      • PRR
        Recognized Expert Contributor
        • Dec 2007
        • 750

        #4
        Originally posted by gracepaul
        Actually the two applications are web applications done in c# and the two are hosted in the same domain by using two folders . I want to pass the value of a text box in one application to another application. There is an html page for connecting these two applications ..
        I have a login page and then redirected to the html page . from that html page by using a link button i am calling anither application.So i want to pass the value of the taxt box in the login page to the application which is called by using the html page.

        Please reply as early as possible.

        Thanks and regards
        Grace
        How about query string? If its a textbox value... i guess query string will do...

        Comment

        • gracepaul
          New Member
          • Jul 2008
          • 28

          #5
          Originally posted by dirtbag
          How about query string? If its a textbox value... i guess query string will do...
          Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
          I want to access the value inside a textbox of application1 in application2.Si nce these two are different web applications session variable or application variable can't use to stroe the value

          Any idea Please help

          Grace

          Comment

          • PRR
            Recognized Expert Contributor
            • Dec 2007
            • 750

            #6
            Originally posted by gracepaul
            Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
            I want to access the value inside a textbox of application1 in application2.Si nce these two are different web applications session variable or application variable can't use to stroe the value

            Any idea Please help

            Grace
            Well how about database? you could store values from one appl and access it from other? you will have to use same databse though...still access rules can be different..

            Comment

            • Curtis Rutland
              Recognized Expert Specialist
              • Apr 2008
              • 3264

              #7
              Originally posted by gracepaul
              Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
              I want to access the value inside a textbox of application1 in application2.Si nce these two are different web applications session variable or application variable can't use to stroe the value

              Any idea Please help

              Grace
              Well, you could use POST, that would obfuscate your values.

              But you can't just reach into one application from another and grab a value.

              Comment

              • djk4mal
                New Member
                • Sep 2008
                • 1

                #8
                Simpliest way is to hook both applications up to a database.

                Comment

                Working...