Redirecting help

Discussion in 'ASP General' started by Joseph Minton, Feb 6, 2013.

  1. My employer uses Reportal, which will basically create a web version
    of a Crystal report. Unfortunately, a user can not refer to a sub-
    report from within a sub-report. However, from within the sub-report,
    I can pass pass off the folllowing URL with parameters to in theory
    fire off another Crystal Report in Reportal.

    For example, "http://10.2.6.74/reports/NameDetails.aspx?
    P1="&{PERSONS.NAME}

    Unfortunately with Reportal, there is a requirement after aspx? to
    place the report number within reportal. Thus, the above example
    won't work since I can't call id=102 in this case

    For example, "http://10.2.6.74/reports/NameDetails.aspx?
    id=102&P1="&{PERSONS.NAME}

    So, I'm wondering if I can set a target redirect ASP up that will pass
    on the parameters and then redirect the page and have it add id=102 to
    the correct location in the above example.

    BTW, in just a regular ASP page, I could use this to pass the id=102.
    I just can't figure out how to redirect it.

    <form action="NameDetails.aspx?" method="GET" name="parmform">
    <input type = "hidden" value = "102" name = "id">
     
    Joseph Minton, Feb 6, 2013
    #1
    1. Advertisements

  2. Joseph Minton

    Evertjan. Guest

    Joseph Minton wrote on 06 feb 2013 in
    microsoft.public.inetserver.asp.general:

    > My employer uses Reportal, which will basically create a web version
    > of a Crystal report. Unfortunately, a user can not refer to a sub-
    > report from within a sub-report. However, from within the sub-report,
    > I can pass pass off the folllowing URL with parameters to in theory
    > fire off another Crystal Report in Reportal.
    >
    > For example, "http://10.2.6.74/reports/NameDetails.aspx?
    > P1="&{PERSONS.NAME}
    >
    > Unfortunately with Reportal, there is a requirement after aspx? to
    > place the report number within reportal. Thus, the above example
    > won't work since I can't call id=102 in this case
    >
    > For example, "http://10.2.6.74/reports/NameDetails.aspx?
    > id=102&P1="&{PERSONS.NAME}
    >
    > So, I'm wondering if I can set a target redirect ASP up that will pass
    > on the parameters and then redirect the page and have it add id=102 to
    > the correct location in the above example.
    >
    > BTW, in just a regular ASP page, I could use this to pass the id=102.
    > I just can't figure out how to redirect it.
    >
    > <form action="NameDetails.aspx?" method="GET" name="parmform">


    The "?" is not needed here.

    > <input type = "hidden" value = "102" name = "id">


    This is a clientside redirection,
    effectively the same as:

    <a href='NameDetails.aspx?id=102'>click</a>

    ====================================

    ASP serverside redirection can only be immediate,
    before any content-streaming has been done to the client.

    <% 'vbs
    response.redirect "NameDetails.aspx?id=102"
    %>

    or

    <% 'js
    Response.redirect('NameDetails.aspx?id=102');
    %>

    It seems you have a bad spell of aspx-itis,
    purposely inflicted on you by MS,
    having you believing that there is no difference
    between serverside and clientside.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Feb 7, 2013
    #2
    1. Advertisements

  3. Thanks
     
    Joseph Minton, Feb 7, 2013
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Jon Landenburer

    redirecting stderr and stdout

    Jon Landenburer, May 12, 2004, in forum: Perl
    Replies:
    1
    Views:
    11,620
    Joe Smith
    May 13, 2004
  2. Sune Hansen

    Site keeps redirecting

    Sune Hansen, Jun 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    514
    Sune Hansen
    Jun 30, 2003
  3. Leslie McGann
    Replies:
    0
    Views:
    2,373
    Leslie McGann
    Jul 3, 2003
  4. =?Utf-8?B?RGVuaXNl?=

    Please Help: Posting and redirecting to another form.

    =?Utf-8?B?RGVuaXNl?=, Mar 30, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    772
    =?Utf-8?B?RGVuaXNl?=
    Apr 4, 2005
  5. ppcguy
    Replies:
    1
    Views:
    835
    Andrea Desole
    Aug 8, 2005
  6. Jonathan Wood

    Redirecting Users: Please Help.

    Jonathan Wood, Nov 14, 2007, in forum: ASP .Net
    Replies:
    10
    Views:
    1,085
    Jonathan Wood
    Nov 17, 2007
  7. quitaxe
    Replies:
    2
    Views:
    344
    Mark Schupp
    May 17, 2004
  8. Andrew Walrond
    Replies:
    1
    Views:
    225
    Gennady
    Aug 26, 2003
Loading...