Difficulty picking up field value from second webform

J

Jonathan

I have 3 webforms on 1 page each with Submit buttons.

VB.net code activated by clicking the submit button in form 3 is not picking
up the value of a field in form 2. It is just returning Null or "" even
though I enter data in the text box.

I am referring to the Form 2 field's unique name as follows:

Request.Form("UserEmailAddress")

Any ideas?
 
S

Steven Cheng

Hi Jonathan,

From your description, you have web page that use 3 webforms on it and have
problem to get all the form data in those forms when submitting the page,
correct?

Based on my understanding, ASP.NET web page should restrict the server-side
webform <form runat="server" > to only one on a single page. Is the other
two forms on your page normal client <form> without runat="server"?

Also, as for the form data lost when submitting page, it is the expected
behavior(a html page behavior). When you do submit, html page will only
carry the form data on the exact form which raise the submit operation, the
data in other <form> won't get submitted.

BTW, would you provide some more information or background about why you
will need multiple forms on a single page or is it possible that we combine
them in single form?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: (e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response

from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take

approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.

The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump

analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
 
S

Steven Cheng

Hi Jonathan,

Have you got any progress on this issue or does the information in my last
reply help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: (e-mail address removed).

--------------------
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top