Request.Form contents are renamed while using masterpage.

J

Joseph James

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
 
B

Brock Allen

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
 
J

Joseph James

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top