request.params

Discussion in 'ASP.NET / ASP.NET Core' started by steph, Sep 2, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello,

    I dunno what's wrong with that maybe someone could help:

    to validate a submission a user has to clic on a link in a confirmation mail the adress of the page is after the clic: www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&[email protected]&confirm=1but an error occurs when I try to get the values of the parameters :
    Exception Details: System.Web.HttpException: Request is not available in this context

    Source Error:


    Line 6:
    Line 7:
    Line 8: Dim temporaire as string = Request.Params("temp")</font id="red">
    Line 9: Dim user_email as string = Request.Params("mail")
    Line 10: Dim validation as string = Request.Params("confirm")


    thanks for some help
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Try use

    request.querystring("test")

    quote:Originally posted by steph

    Hello,

    I dunno what's wrong with that maybe someone could help:

    to validate a submission a user has to clic on a link in a confirmation mail the adress of the page is after the clic: www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&[email protected]&confirm=1but an error occurs when I try to get the values of the parameters :
    Exception Details: System.Web.HttpException: Request is not available in this context

    Source Error:


    Line 6:
    Line 7:
    Line 8: Dim temporaire as string = Request.Params("temp")</font id="red">
    Line 9: Dim user_email as string = Request.Params("mail")
    Line 10: Dim validation as string = Request.Params("confirm")


    thanks for some help

    </blockquote id="quote"></font id="quote">
     
  3. I tried changing the first line, here is the result:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Request is not available in this context
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Request is not available in this context

    Source Error:


    Line 6: '
    Line 7:
    Line 8: Dim temporaire as string = Request.querystring("temp")
    Line 9: Dim user_email as string = Request.Params("mail")
    Line 10: Dim validation as string = Request.Params("confirm")






    quote:Originally posted by bruce

    Try use

    request.querystring("test")
    </blockquote id="quote"></font id="quote">
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Very weird....

    I tried this piece of code and it worked just fine

    <%@ Page Language="VB" %>
    <script runat="server">

    Sub Page_load()
    dim test as string = request.querystring("test")
    response.write (test)
    End Sub
    </script>
    <html>
    <head>
    </head>

    <form runat="server">

    </form>
    </body>
    </html>





    quote:Originally posted by steph

    I tried changing the first line, here is the result:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Request is not available in this context
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Request is not available in this context

    Source Error:


    Line 6: '
    Line 7:
    Line 8: Dim temporaire as string = Request.querystring("temp")
    Line 9: Dim user_email as string = Request.Params("mail")
    Line 10: Dim validation as string = Request.Params("confirm")






    quote:Originally posted by bruce

    Try use

    request.querystring("test")
    </blockquote id="quote"></font id="quote">


    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page