p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VS.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=103)
-   -   Looping through form elements (http://p2p.wrox.com/showthread.php?t=12867)

trekmp May 11th, 2004 10:32 AM

Looping through form elements
I've got a simple form with a list of form elements, how using code behind (VB), can I get the values from these elements.

Thanks for any help provided

bmains May 11th, 2004 11:01 AM

You can use Page.FindControl("form ID") to get a form control. These forms must declare runat="server" to access them in this way, which I believe you can only have one form declare this. Otherwise, you have to use javascript to handle whatever you need to do with these.


All times are GMT -4. The time now is 04:12 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.