ASP.NET QueryString confusion?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP.NET QueryString confusion?

    Hi

    My Stored procedure command currently uses the SuccessUrl to go to a new page
    and pick a QueryString after UPDATE as follows: SuccessURL='<%#
    "prop_LIST.aspx?section=" & Request.QueryString("section") %>'

    Does anybody no how to enable the above to pick up 2 QueryStrings?
    I keep getting errors no matter what i do

    Please help

    Regards
    J

    j289243 Guest

  2. Similar Questions and Discussions

    1. RRD confusion
      I've been using a script called weathergraph on a FreeBSD box for years. Last week I upgraded the machine, and the script stopped working. One of...
    2. emf confusion
      Can anyone tell me what has happened in the settings of Freehand 8 when this problem occurs: Whereas FH drawings that were made months ago, and...
    3. Net Confusion
      It should work, but this problem is notorious to VS.NET. See...
    4. CD/RW Confusion?
      I need a primer on writing to a CD/RW disk. My current drive supports CD/RW disks, but for some reason I keep getting error messages when I try to...
    5. eps confusion
      FH has the ability to edit some EPS file, but not all. In fact eps files FH exports are not editable unless you check "Include Freehand". If you have...
  3. #2

    Default Re: ASP.NET QueryString confusion?

    UPDATE:

    I thought i would post my findings for any other unfortunate with a similar
    issue.

    SuccessURL='<%# "prop_LIST.aspx?section=" & Request.QueryString("section") &
    "&DataShaper1Page=" & Request.QueryString("DataShaper1Page") %>'

    The SuccessUrl with multiple Requests does work as long as values exist for
    the Request to pick up.
    Basicly when jumping to my Detail page the "DataShaper1Page=" value was
    nothing when in true terms it starts on 0.
    So to fix my problem i sent from the main page to the detail page the
    following URL Addition "&DataShaper1Page=0".

    I managed to come up with this other piece of code which also works the same
    way. It could do with extending with either a default value or basic check to
    see if something exists.


    <script runat="server">
    Sub up_Updated(sender As Object, e As DreamweaverCtrls.UpdatedEventArgs)
    dim URL = "prop_LIST.aspx?section=" & Request.QueryString("section") &
    "&DataShaper1Page=" & Request.QueryString("DataShaper1Page")
    Response.Redirect(URL)
    End Sub
    </script>

    I hope this is helpful

    Regards
    J

    j289243 Guest

  4. #3

    Default Re: ASP.NET QueryString confusion?

    > My Stored procedure command currently uses the SuccessUrl to go to a new
    page
    > and pick a QueryString after UPDATE as follows: SuccessURL='<%#
    > "prop_LIST.aspx?section=" & Request.QueryString("section") %>'
    >
    > Does anybody no how to enable the above to pick up 2 QueryStrings?
    Like this?

    Request.QueryString("string1") & Request.QueryString("string2")

    FYI, if you are using .net, have you considered just puting the
    'confirmation' on the same page? That way you can just pass the data via
    postback instead of having to send them off to antoher page and grab
    querystrings.

    -Darrel


    darrel Guest

  5. #4

    Default Re: ASP.NET QueryString confusion?

    > I managed to come up with this other piece of code which also works the
    same
    > way. It could do with extending with either a default value or basic
    check to
    > see if something exists.
    Ah, yes. In .net, you have to check to see if the querystring even exists:

    If Not Request.QueryString("whatever") Is Nothing Then
    'something is there
    End If


    -Darrel


    darrel 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