Hi, I have added two syntaxes in WebPage.
The first one is: <%:OtherWebPage%> This includes the OtherWebPage contents inside the current WebPage. That syntax can take attributes, like an HTML markup. <%:OtherWebPage name="value" name2="value2"%> Beware the the contents of an attribute does not follow the HTML syntax (as it is rendered on the server). To get the value of an attribute in OtherWebPage, you must use the second added syntax: <%!name%> So, now, you have four server-side syntaxes in a Gambas WebPage: 1) <% ... %> to include any code. 2) <%= ... %> to render HTML from a Gambas expression. 3) <%: ... %> to include another WebPage, passing attributes optionnaly. 4) <%! ... %> to get the value of an attribute. To render a specific WebPage, you have to call the Render() method. Now I have a question: would it be useful to have a mechanism that will automatically choose a WebPage to render from the URL contents? -- Benoît Minisini ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user