Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Difficulty picking up field value from second webform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan - 06 Mar 2008 11:45 GMT
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?
Steven Cheng - 07 Mar 2008 01:17 GMT
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: msdnmg@microsoft.com.

==================================================
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.

--------------------
>From: "Jonathan" <none@none.com>
>Subject: Difficulty picking up field value from second webform
[quoted text clipped - 11 lines]
>
>Any ideas?
Steven Cheng - 11 Mar 2008 11:06 GMT
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: msdnmg@microsoft.com.

--------------------
>From: stcheng@online.microsoft.com ("Steven Cheng")
>Organization: Microsoft
>Date: Fri, 07 Mar 2008 01:17:09 GMT
>Subject: RE: Difficulty picking up field value from second webform

>Hi Jonathan,
>
[quoted text clipped - 77 lines]
>>
>>Any ideas?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.