bdn.borland.com

Article #29027: How to Get the Page Name of a WebModule in a WebSnap Application.

Question: I'd like to create a link in one Web Module to reference another Web Module, such that when the user clicks on the link it takes them to that page.

Solution: The easiest way to do this is to use Pages script variable. If the page has been registered with the application then it should be accessible from the Pages variable. The example below illustrates how one would generate a HTML link to a page called YourPageName:

<a href="<%Response.Write(Pages.YourPageName.HREF)%>"> Click Me </a>

Last Modified: 12-SEP-02