Passing a value from a client to a session("Temp")

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Passing a value from a client to a session("Temp")

    Hi, friends:

    I have an ASP page where an user enter a value and click the submit button.
    I want this value to be transfer to a session("temp") within the same page
    where I want to call it back from the same ASP page.


    Arnaldo Martinez Guest

  2. Similar Questions and Discussions

    1. Passing parameter when launching a program as a "Link"
      I am trying to get Notepad.exe to launch a specific batch file for editing. I would like to establish this using the "link tool" in Acrobat 6.0.1...
    2. Passing "%" wild card to stored procedure
      Hi everyone, This may be a simple question: When I pass "%" (without the quotes) in an asp page to a stored procedure, I get the Incorrect...
    3. Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >
      Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are...
    4. Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable"))
      Hello, let's say my session("myDataTable") is type of DataTable Now what is faster? a) Dim dv As New DataView(session("myDataTable")) b) Dim...
  3. #2

    Default Re: Passing a value from a client to a session("Temp")

    > I have an ASP page where an user enter a value and click the submit
    button.
    > I want this value to be transfer to a session("temp") within the same
    page
    > where I want to call it back from the same ASP page.
    This doesn't make much sense. So the ASP runs, loads a bunch of client-side
    script, and then it's done. So yes, you can use a workaround to set a
    session variable without actually refreshing the page (see
    [url]http://www.aspfaq.com/2281[/url]), but how on earth is that page itself going to
    use the session variable? You can't do that without running some ASP code,
    and you can't run that page's ASP code without the ASP page reloading. So,
    probably the best option is to submit a form, which sets the session
    variable and then the rest of the page can load, using the new session
    variable that's been stored...


    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: Passing a value from a client to a session("Temp")

    "Arnaldo Martinez" <martinezae@mdpls.org> wrote in message
    news:%23RoXnpAlDHA.2456@TK2MSFTNGP09.phx.gbl...
    > Hi, friends:
    >
    > I have an ASP page where an user enter a value and click the submit
    button.
    > I want this value to be transfer to a session("temp") within the same
    page
    > where I want to call it back from the same ASP page.
    Something like this?

    <form action="" method="post">
    <input type="text" name="test">
    <input type="submit" name="Submit" value="Submit">
    </form>
    <%
    Session("test") = Request("test")
    Response.write( "<div>Session(""test"")=" & Session("test") & "</div>")
    %>


    Peter Foti Guest

  5. #4

    Default Re: Passing a value from a client to a session("Temp")

    What happened with the sample I posted in active-server-pages Yahoo group?

    Ray at work

    "Arnaldo Martinez" <martinezae@mdpls.org> wrote in message
    news:%23RoXnpAlDHA.2456@TK2MSFTNGP09.phx.gbl...
    > Hi, friends:
    >
    > I have an ASP page where an user enter a value and click the submit
    button.
    > I want this value to be transfer to a session("temp") within the same
    page
    > where I want to call it back from the same ASP page.
    >
    >

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139