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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.