Request.Form returning null??? help

  • Thread starter Thread starter David Smith
  • Start date Start date
D

David Smith

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

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

On the "anotherpage.aspx", 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
http://localhost/myproject/anotherpage.aspx?id=1234

ugh.... any ideas?

Thanks
 
argh...once again, nevermind... Ive been working so long Im losing my mind I
think... Request.QueryString works just fine...
 
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 said:
argh...once again, nevermind... Ive been working so long Im losing my mind I
think... Request.QueryString works just fine...


David Smith said:
Ok, I have a button in an ascx usercontrol which is supposed to do a
response.redirect to a new page, including an id as in:

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

On the "anotherpage.aspx", 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
http://localhost/myproject/anotherpage.aspx?id=1234

ugh.... any ideas?

Thanks
 
Back
Top