Note that there are some explanatory texts on larger screens.

plurals
  1. POWebform that includes other webforms - doesn't work
    text
    copied!<p>I have a webpage that supplies a structure, in it, I include multiple files. For instance: 1. header.aspx which contains a form for logging in. 2. main.aspx that includes another form 3. footer.aspx that includes yet another form.</p> <p>this is my code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;!--#include file="header.aspx"--&gt; &lt;!--#include file="main.aspx"--&gt; &lt;!--#include file="footer.aspx"--&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>each sub-file has it's on .cs or .vb class page, and each file has a page directive.</p> <p>I get the expected error: </p> <blockquote> <p>There can be only one 'page' directive.</p> </blockquote> <p>I recognize that I address my issue from the wrong perspective. How should I re-construct the structure of my page to allow me to include multiple webforms?</p> <p>alternitavely, is there (there must be), a better "righter" way to do the sort of thing I am trying to achieve, being: creating one big page that is constructed from many fragments of smaller webpages/webforms. </p> <p>additionally, I don't want header.aspx to be accessible by typing in its address in the browser domain.com/header.aspx, but rather I always want it to be displayed as part of a bigger webpage.</p> <p>what the way to go instead of my proven to fail method?</p> <p>Thanks</p> <p>p.s I don't mind doing my own research, but I do need guidance, so, I would appreciate a full example and explanation with all the information I need, but also links to articles will be highly appreciated. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload