Request.Form returning null??? help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Smith

    #1

    Request.Form returning null??? help

    Ok, I have a button in an ascx usercontrol which is supposed to do a
    response.redire ct to a new page, including an id as in:

    Response.Redire ct("anotherpage .aspx?id=" + id);

    On the "anotherpage.as px", Im using:

    string id = Request.Form["id"];

    id is *always* null... It seems Ive used these commands a hundred times, and
    this makes no sense. The url in Explorer's address bar reads


    ugh.... any ideas?

    Thanks




  • David Smith

    #2
    Re: Request.Form returning null??? help

    argh...once again, nevermind... Ive been working so long Im losing my mind I
    think... Request.QuerySt ring works just fine...


    "David Smith" <nospam@here.ne t> wrote in message
    news:3f9194f4_2 @news.athenanew s.com...[color=blue]
    > Ok, I have a button in an ascx usercontrol which is supposed to do a
    > response.redire ct to a new page, including an id as in:
    >
    > Response.Redire ct("anotherpage .aspx?id=" + id);
    >
    > On the "anotherpage.as px", Im using:
    >
    > string id = Request.Form["id"];
    >
    > id is *always* null... It seems Ive used these commands a hundred times,[/color]
    and[color=blue]
    > this makes no sense. The url in Explorer's address bar reads
    > http://localhost/myproject/anotherpage.aspx?id=1234
    >
    > ugh.... any ideas?
    >
    > Thanks
    >
    >
    >
    >[/color]


    Comment

    • Richard A. Lowe

      #3
      Re: Request.Form returning null??? help

      Try the new Request.Params property which willl look in both places.

      Richard

      --
      Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous voyez
      mauvais C #, c'est mon défaut!
      "David Smith" <nospam@here.ne t> wrote in message
      news:3f91a230$1 _6@news.athenan ews.com...[color=blue]
      > argh...once again, nevermind... Ive been working so long Im losing my mind[/color]
      I[color=blue]
      > think... Request.QuerySt ring works just fine...
      >
      >
      > "David Smith" <nospam@here.ne t> wrote in message
      > news:3f9194f4_2 @news.athenanew s.com...[color=green]
      > > Ok, I have a button in an ascx usercontrol which is supposed to do a
      > > response.redire ct to a new page, including an id as in:
      > >
      > > Response.Redire ct("anotherpage .aspx?id=" + id);
      > >
      > > On the "anotherpage.as px", Im using:
      > >
      > > string id = Request.Form["id"];
      > >
      > > id is *always* null... It seems Ive used these commands a hundred times,[/color]
      > and[color=green]
      > > this makes no sense. The url in Explorer's address bar reads
      > > http://localhost/myproject/anotherpage.aspx?id=1234
      > >
      > > ugh.... any ideas?
      > >
      > > Thanks
      > >
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...