Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Files and Forms

Status
Not open for further replies.

kav123

Programmer
Jan 12, 2005
210
GB
Can i use forms in include files and then use Request.Form to retrieve their values. i.e. a form is there in an asp file which is used in an include file in another asp file. But i am unable to rerieve the values of the form. Is it possible at all.
 
I'm not sure I entirely understand your question, but I will attempt to answer it anyway.

When an ASP page is processed, the system basically builds one large ASP file that has all the includes and such in it. It then runs through that page all at once to produce the output. This means that anything that is included in the include files acts just like it is in the main file. If there is content or ASP code not in functions or subs in the include file that it will run the same as if you had pasted it into the spot you have your include in the main page.

If your having difficulty picking up form inputs that are generated from an include file the first place to look would be the source in your browser. This will let you make sure everything ended up inside the form tags, it's all where you expected it to be, named correctly, etc.
The next place would be your actual statements on the following page that are trying to read the values.

It might help if you posted up some of your code for both pages.

-T

Best MS KB Ever:
 
Thanks for your reply. I managed a work around by using Javascript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top