When I use an html form to post to a aspx page...the Request.Form
collection is empty. I've reproduced this on multiple machines. By
html form, I mean one that does not have runat="server" and the page
extension is html.
I'm assuming the new Request.Form collection contains only server side
controls if it shows up empty.
How do I get traditional html control values when posting to an aspx
page?
Thanks a ton!
- ScottI just tried the scenario you described and it worked for me - -
two things to always look out for :
querystrings (if you're using them) must be case sensitive in both places
if you're assigning the request.form info to a variable and using it
elsewhere on the page, the variable must be dimensioned globally (on the
receiving page).
What is your code on the receiving page, which grabs the request.form info
and displays it ?
David Wier
MCP, MVP ASP.NET, ASPInsider
http://aspnet101.com
http://aspexpress.com
"Scottyb" <scottbed@.yahoo.com> wrote in message
news:a2240d55.0409200919.4c9f51c7@.posting.google.com...
> When I use an html form to post to a aspx page...the Request.Form
> collection is empty. I've reproduced this on multiple machines. By
> html form, I mean one that does not have runat="server" and the page
> extension is html.
> I'm assuming the new Request.Form collection contains only server side
> controls if it shows up empty.
> How do I get traditional html control values when posting to an aspx
> page?
> Thanks a ton!
> - Scott
Are fields named ? Fields without the name attribute are not poseted.
Else it's likely better to just post a minimal HTML page that show the
problem... You may have also perhaps a viewstate problem ? (I would use the
usual page post ti itself model if possible).
Patrice
"Scottyb" <scottbed@.yahoo.com> a crit dans le message de
news:a2240d55.0409200919.4c9f51c7@.posting.google.com...
> When I use an html form to post to a aspx page...the Request.Form
> collection is empty. I've reproduced this on multiple machines. By
> html form, I mean one that does not have runat="server" and the page
> extension is html.
> I'm assuming the new Request.Form collection contains only server side
> controls if it shows up empty.
> How do I get traditional html control values when posting to an aspx
> page?
> Thanks a ton!
> - Scott
Are you authenticating your users against the Active Directory? If so, try
it without authentication to see if http://support.microsoft.com/?id=308074
is the problem.
Ray at home
"Scottyb" <scottbed@.yahoo.com> wrote in message
news:a2240d55.0409200919.4c9f51c7@.posting.google.com...
> When I use an html form to post to a aspx page...the Request.Form
> collection is empty. I've reproduced this on multiple machines. By
> html form, I mean one that does not have runat="server" and the page
> extension is html.
> I'm assuming the new Request.Form collection contains only server side
> controls if it shows up empty.
> How do I get traditional html control values when posting to an aspx
> page?
> Thanks a ton!
> - Scott
No comments:
Post a Comment