473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

master site and asp.net and vb.net?

How can you get a value from a second page on a master site with vb.net? I am triying to get a value from a control on the page and I can't seem to loop through the controls on the page like I would do with a windows applicaton. Is there any special code that I shoud be using to get the values I am using the following statement to get is but it is not working:

For Each cntrl As Control() In Me.Page.Controls()
'what ever code
Next
Mar 11 '08 #1
2 1080
jeffstl
432 Expert 256MB
How can you get a value from a second page on a master site with vb.net? I am triying to get a value from a control on the page and I can't seem to loop through the controls on the page like I would do with a windows applicaton. Is there any special code that I shoud be using to get the values I am using the following statement to get is but it is not working:

For Each cntrl As Control() In Me.Page.Controls()
'what ever code
Next
Why are you trying to loop through controls? Do you have an array of controls?

If you need the value of a control on a second page you have to get it via a form submission or querystring.
Mar 11 '08 #2
what is the form submission? I am trying to get the values from the controls on the form so that I can validate the fields data.My problem is that I need the id of the field to get the right validation settings from the database. That is the easy part of the code. I also then need to show the errors of the field of there are any in the label in the form that corresponds to the input control.
Mar 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
20
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and...
2
by: Wayne Sepega | last post by:
We currntly have one site, with a menu. However, we have multiple projects on this site. I would like to have a single master page for the entire site. I did the following: Created a new web...
0
by: John Holmes | last post by:
I have a website that consists of numerous ASP.NET applications (each referred to as a website in VS 2005) which I'd like to have share a master page. My directory structure on the website is like...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
2
by: Paul | last post by:
Hello: I am struggling with something that would seem to be very easy. I am using a master page. On the content page (which includes the master page), I have a form with a submit input type...
2
by: Alec MacLean | last post by:
Hi I've just recently upgraded to VS2005 and started using/learning about the Master Pages. I'd like to know if it is possible to have separate web app projects use the master page(s) from...
3
by: AmitKu | last post by:
My site has a header and footer that is common to all pages on the site. It makes sense that this should be stored within a master, and have everybody go off of this one. However, one part of...
5
by: WT | last post by:
Hello, I want to know if the .master is of any importance for a master page. Could I have an .ascx extension and the <%@ Matser..%Directive inside, will my page load using LoadControl from code...
3
by: =?Utf-8?B?U3RldmUgTGFGb3JnZQ==?= | last post by:
I have an intranet site and want to create a simple master page to be shared across all applications that are built for that site. I build my master page in c:\inetpub\wwwroot\Masters as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.