Request.Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ana Rita

    #1

    Request.Form

    Hello to all

    I'm trying to make a Request.Form("X ") from a page to
    another.

    I have two pages.

    Page one.aspx:

    One webcontrol HyperLink to page two.aspx

    One <input type="hidden" value="0" name="Hello"
    id="Hello" ...>


    Page two.aspx:

    One webcontrol textbox1.


    In page two.aspx on page_load i resquest the value from
    the input in the page one.aspx.

    Textbox1.text=R equest.Form("He llo").

    The text of the textbox1 doesn't show the value 0.

    Is there any way to access the value of the hidden
    control in page two.aspx?

    Thank you all.

    Best wishes

    Ana Rita

  • Marina

    #2
    Re: Request.Form

    Clicking a hyperlink results in a GET request of the page. It does not
    result in a POST - which is what would post the form values.

    What is it you are trying to accomplish? ASP.NET does not typically
    encourage you posting from one page to another. Typically one page will
    handle it's own clicks and data.

    "Ana Rita" <gatarita@clix. pt> wrote in message
    news:00b001c394 07$33ece170$a40 1280a@phx.gbl.. .[color=blue]
    > Hello to all
    >
    > I'm trying to make a Request.Form("X ") from a page to
    > another.
    >
    > I have two pages.
    >
    > Page one.aspx:
    >
    > One webcontrol HyperLink to page two.aspx
    >
    > One <input type="hidden" value="0" name="Hello"
    > id="Hello" ...>
    >
    >
    > Page two.aspx:
    >
    > One webcontrol textbox1.
    >
    >
    > In page two.aspx on page_load i resquest the value from
    > the input in the page one.aspx.
    >
    > Textbox1.text=R equest.Form("He llo").
    >
    > The text of the textbox1 doesn't show the value 0.
    >
    > Is there any way to access the value of the hidden
    > control in page two.aspx?
    >
    > Thank you all.
    >
    > Best wishes
    >
    > Ana Rita
    >[/color]


    Comment

    Working...