470,620 Members | 1,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,620 developers. It's quick & easy.

Request.Form contents are renamed while using masterpage.

Hi all,
I am very new to ASP.net. As I was going through new features of asp.net, I
came across Masterpage and I tried to use it. But when the form is posted to
another page, the key names of the controls are pretended with the
masterpage content place holder's name. Is there any way how can I get the
value of a control from the request.form?
Thanks in advance

Nov 19 '05 #1
2 1427
You should be accessing the post data via the reference to the control on
your page (or in your master), not via the Request.Forms collection. You're
losing out on the object model by going directly to the Forms collection.
Can you not use the controls in the page for some reason?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi all,
I am very new to ASP.net. As I was going through new features of
asp.net, I
came across Masterpage and I tried to use it. But when the form is
posted to
another page, the key names of the controls are pretended with the
masterpage content place holder's name. Is there any way how can I get
the
value of a control from the request.form?
Thanks in advance


Nov 19 '05 #2
Thanks for your time Allen,
No problem with controls in master page (so far). Can you point me where I
can find an example of accessing the post data via the reference to the
control please!
Thanks in advance
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.